diff options
Diffstat (limited to 'compiler/pragmas.nim')
-rw-r--r-- | compiler/pragmas.nim | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/compiler/pragmas.nim b/compiler/pragmas.nim index 3808b8f58..e750cc390 100644 --- a/compiler/pragmas.nim +++ b/compiler/pragmas.nim @@ -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 |