fixes serious regression that was introduced in the handling of .compile pragma
This commit is contained in:
parent
0f82f047a2
commit
0c49ee25a9
2 changed files with 12 additions and 10 deletions
|
|
@ -419,8 +419,10 @@ proc processCompile(c: PContext, n: PNode) =
|
|||
var found = parentDir(n.info.toFullPath) / s
|
||||
for f in os.walkFiles(found):
|
||||
let nameOnly = extractFilename(f)
|
||||
extccomp.addExternalFileToCompile(Cfile(cname: f,
|
||||
obj: dest % nameOnly, flags: {CfileFlag.External}))
|
||||
var cf = Cfile(cname: f,
|
||||
obj: completeCFilePath(dest % nameOnly),
|
||||
flags: {CfileFlag.External})
|
||||
extccomp.addExternalFileToCompile(cf)
|
||||
else:
|
||||
let s = expectStrLit(c, n)
|
||||
var found = parentDir(n.info.toFullPath) / s
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue