fix #9629 every binary cmd line option allows on/off/empty=on (#10353)

* fix #9629 every binary cmd line option allows on/off/empty=on

* workaround refs #10359
This commit is contained in:
Timothee Cour
2019-01-18 00:03:26 -08:00
committed by Andreas Rumpf
parent 4b4e4fc029
commit 27e2ed4375
4 changed files with 43 additions and 58 deletions

View File

@@ -121,7 +121,10 @@ else:
block: # fix #9842
let exe = buildDir / "D20190112T145450".addFileExt(ExeExt)
defer: removeFile exe
defer:
when not defined(windows):
# workaround #10359 ; innocuous to skip since we're saving under `buildDir`
removeFile exe
let args = @["a1b", "a2 b", "", "a4\"b", "a5'b", r"a6\b", "a7\'b"]
let cmd = "$# c -r --verbosity:0 -o:$# -d:testament_tparseopt $# $#" %
[getCurrentCompilerExe(), exe, currentSourcePath(),