Skip to content

Commit

Permalink
backend: respect '--gcc.exe' with '--genScript:on'
Browse files Browse the repository at this point in the history
  • Loading branch information
CyberTailor committed Jul 17, 2023
1 parent c0ba526 commit 7be10ec
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions compiler/backend/extccomp.nim
Original file line number Diff line number Diff line change
Expand Up @@ -580,17 +580,16 @@ proc getCompileCFileCmd*(conf: ConfigRef; cfile: Cfile,
options.add ' '
options.add cfile.customArgs

var compilePattern: string
let compilePattern =
if noAbsolutePaths(conf): exe
else: joinPath(conf.cCompilerPath, exe)

# compute include paths:
var includeCmd = CC[c].includeCmd & quoteShell(conf.libpath)
if not noAbsolutePaths(conf):
for includeDir in items(conf.cIncludes):
includeCmd.add(join([CC[c].includeCmd, includeDir.quoteShell]))

compilePattern = joinPath(conf.cCompilerPath, exe)
else:
compilePattern = getCompilerExe(conf, c, cfile.cname)

includeCmd.add(join([CC[c].includeCmd, quoteShell(conf.projectPath.string)]))

let cf = if noAbsolutePaths(conf): AbsoluteFile extractFilename(cfile.cname.string)
Expand Down

0 comments on commit 7be10ec

Please sign in to comment.