Fixes #351.
This commit is contained in:
parent
ee34150d70
commit
d1eae2f1a0
2 changed files with 9 additions and 1 deletions
|
|
@ -634,7 +634,7 @@ proc execBackend(options: Options) =
|
||||||
var args = ""
|
var args = ""
|
||||||
for path in paths: args.add("--path:\"" & path & "\" ")
|
for path in paths: args.add("--path:\"" & path & "\" ")
|
||||||
for option in options.action.compileOptions:
|
for option in options.action.compileOptions:
|
||||||
args.add(option & " ")
|
args.add("\"" & option & "\" ")
|
||||||
|
|
||||||
let backend =
|
let backend =
|
||||||
if options.action.backend.len > 0:
|
if options.action.backend.len > 0:
|
||||||
|
|
|
||||||
|
|
@ -453,3 +453,11 @@ suite "can handle two binary versions":
|
||||||
check exitCode == QuitSuccess
|
check exitCode == QuitSuccess
|
||||||
check output.strip() == "v2"
|
check output.strip() == "v2"
|
||||||
|
|
||||||
|
test "can pass args with spaces to Nim (#351)":
|
||||||
|
cd "binaryPackage/v2":
|
||||||
|
let (output, exitCode) = execCmdEx(nimblePath &
|
||||||
|
" c -r" &
|
||||||
|
" -d:myVar=\"string with spaces\"" &
|
||||||
|
" binaryPackage")
|
||||||
|
checkpoint output
|
||||||
|
check exitCode == QuitSuccess
|
||||||
Loading…
Add table
Add a link
Reference in a new issue