make testament compile again with --taintMode:on

This commit is contained in:
Araq
2018-10-18 14:25:39 +02:00
parent 675c629fee
commit e66b51eb16

View File

@@ -313,7 +313,7 @@ proc testSpec(r: var TResults, test: TTest, target = targetC) =
inc(r.total)
return
if getEnv("NIM_COMPILE_TO_CPP", "false") == "true" and target == targetC and expected.targets == {}:
if getEnv("NIM_COMPILE_TO_CPP", "false").string == "true" and target == targetC and expected.targets == {}:
expected.targets.incl(targetCpp)
elif expected.targets == {}:
expected.targets.incl(target)