testament: use NIM_COMPILE_TO_CPP environment variable
This commit is contained in:
parent
381498b0db
commit
be77710c8c
1 changed files with 4 additions and 2 deletions
|
|
@ -313,7 +313,9 @@ proc testSpec(r: var TResults, test: TTest, target = targetC) =
|
||||||
inc(r.total)
|
inc(r.total)
|
||||||
return
|
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)
|
expected.targets.incl(target)
|
||||||
|
|
||||||
for target in expected.targets:
|
for target in expected.targets:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue