quote filenames in when invoking compiler from C backend

This commit is contained in:
Michał Zieliński 2015-01-14 20:16:35 +01:00
commit b1351d23f5

View file

@ -548,7 +548,7 @@ proc getCompileCFileCmd*(cfilename: string, isExternal = false): string =
completeCFilePath(toObjFile(cfile)) completeCFilePath(toObjFile(cfile))
objfile = quoteShell(objfile) objfile = quoteShell(objfile)
result = quoteShell(compilePattern % [ result = quoteShell(compilePattern % [
"file", cfile, "objfile", objfile, "options", options, "file", quoteShell(cfile), "objfile", quoteShell(objfile), "options", options,
"include", includeCmd, "nimrod", getPrefixDir(), "include", includeCmd, "nimrod", getPrefixDir(),
"nim", getPrefixDir(), "lib", libpath]) "nim", getPrefixDir(), "lib", libpath])
add(result, ' ') add(result, ' ')
@ -717,4 +717,3 @@ proc writeMapping*(gSymbolMapping: PRope) =
appf(code, "\n[Symbols]$n$1", [gSymbolMapping]) appf(code, "\n[Symbols]$n$1", [gSymbolMapping])
writeRope(code, joinPath(gProjectPath, "mapping.txt")) writeRope(code, joinPath(gProjectPath, "mapping.txt"))