don't make optNilCheck default to on for now (#7058)

* don't make optNilCheck default to on for now

* add conditional symbol nimHasNilChecks
This commit is contained in:
jcosborn
2018-01-16 18:32:40 -06:00
committed by Andreas Rumpf
parent 136f1a208a
commit 399c5e38b7
2 changed files with 4 additions and 0 deletions

View File

@@ -112,3 +112,4 @@ proc initDefines*() =
defineSymbol("nimNewRoof")
defineSymbol("nimHasRunnableExamples")
defineSymbol("nimNewDot")
defineSymbol("nimHasNilChecks")

View File

@@ -59,6 +59,9 @@ path="$lib/pure"
debugger:off
line_dir:off
dead_code_elim:on
@if nimHasNilChecks:
nilchecks:off
@end
@end
@if release: