diff options
author | Michał Zieliński <michal@zielinscy.org.pl> | 2015-01-14 20:16:35 +0100 |
---|---|---|
committer | Michał Zieliński <michal@zielinscy.org.pl> | 2015-01-14 20:16:35 +0100 |
commit | b1351d23f52759fc67deb29625aa673fb6c5e2ef (patch) | |
tree | 249151344284a8162c0cdd9f75632664e1d3399a | |
parent | 33c587d06b0c24e571ac7f9b8ae3e565df1ab9f5 (diff) | |
download | Nim-b1351d23f52759fc67deb29625aa673fb6c5e2ef.tar.gz |
quote filenames in when invoking compiler from C backend
-rw-r--r-- | compiler/extccomp.nim | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/compiler/extccomp.nim b/compiler/extccomp.nim index ad9c38904..d61594cba 100644 --- a/compiler/extccomp.nim +++ b/compiler/extccomp.nim @@ -548,7 +548,7 @@ proc getCompileCFileCmd*(cfilename: string, isExternal = false): string = completeCFilePath(toObjFile(cfile)) objfile = quoteShell(objfile) result = quoteShell(compilePattern % [ - "file", cfile, "objfile", objfile, "options", options, + "file", quoteShell(cfile), "objfile", quoteShell(objfile), "options", options, "include", includeCmd, "nimrod", getPrefixDir(), "nim", getPrefixDir(), "lib", libpath]) add(result, ' ') @@ -717,4 +717,3 @@ proc writeMapping*(gSymbolMapping: PRope) = appf(code, "\n[Symbols]$n$1", [gSymbolMapping]) writeRope(code, joinPath(gProjectPath, "mapping.txt")) - |