mirror of
https://github.com/nim-lang/Nim.git
synced 2026-02-16 08:04:20 +00:00
testament: use NIM_COMPILE_TO_CPP environment variable
This commit is contained in:
@@ -86,7 +86,7 @@ proc callCompiler(cmdTemplate, filename, options: string,
|
||||
let c = parseCmdLine(cmdTemplate % ["target", targetToCmd[target],
|
||||
"options", options, "file", filename.quoteShell,
|
||||
"filedir", filename.getFileDir()])
|
||||
var p = startProcess(command=c[0], args=c[1.. ^1],
|
||||
var p = startProcess(command=c[0], args=c[1 .. ^1],
|
||||
options={poStdErrToStdOut, poUsePath})
|
||||
let outp = p.outputStream
|
||||
var suc = ""
|
||||
@@ -313,7 +313,9 @@ proc testSpec(r: var TResults, test: TTest, target = targetC) =
|
||||
inc(r.total)
|
||||
return
|
||||
|
||||
if expected.targets == {}:
|
||||
if getEnv("NIM_COMPILE_TO_CPP", "false") == "true" and target == targetC and expected.targets == {}:
|
||||
expected.targets.incl(targetCpp)
|
||||
elif expected.targets == {}:
|
||||
expected.targets.incl(target)
|
||||
|
||||
for target in expected.targets:
|
||||
|
||||
Reference in New Issue
Block a user