mirror of
https://github.com/nim-lang/Nim.git
synced 2026-08-14 02:54:59 +00:00
fixes #26060; genscript generated broken script for {.compile.}
This commit is contained in:
@@ -616,8 +616,12 @@ proc getCompileCFileCmd*(conf: ConfigRef; cfile: Cfile,
|
||||
|
||||
includeCmd.add(join([CC[c].includeCmd, quoteShell(conf.projectPath.string)]))
|
||||
|
||||
let cf = if noAbsolutePaths(conf): AbsoluteFile extractFilename(cfile.cname.string)
|
||||
else: cfile.cname
|
||||
# Generated files live in nimcache, but external files are not copied there.
|
||||
let cf =
|
||||
if noAbsolutePaths(conf) and CfileFlag.External notin cfile.flags:
|
||||
AbsoluteFile extractFilename(cfile.cname.string)
|
||||
else:
|
||||
cfile.cname
|
||||
|
||||
let objfile =
|
||||
if cfile.obj.isEmpty:
|
||||
|
||||
Reference in New Issue
Block a user