mirror of
https://github.com/nim-lang/Nim.git
synced 2025-12-30 18:02:05 +00:00
quote filenames in when invoking compiler from C backend
This commit is contained in:
@@ -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"))
|
||||
|
||||
|
||||
Reference in New Issue
Block a user