proper 'space in dir' test

This commit is contained in:
Araq 2015-01-24 13:29:37 +01:00
commit efb5ec3e73
2 changed files with 1 additions and 1 deletions

View file

@ -57,7 +57,7 @@ let
proc callCompiler(cmdTemplate, filename, options: string,
target: TTarget): TSpec =
let c = parseCmdLine(cmdTemplate % ["target", targetToCmd[target],
"options", options, "file", filename])
"options", options, "file", filename.quoteShell])
var p = startProcess(command=c[0], args=c[1.. -1],
options={poStdErrToStdOut, poUseShell})
let outp = p.outputStream