quote filenames in when invoking compiler from C backend
This commit is contained in:
parent
33c587d06b
commit
b1351d23f5
1 changed files with 1 additions and 2 deletions
|
|
@ -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"))
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue