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:
parent
136f1a208a
commit
399c5e38b7
2 changed files with 4 additions and 0 deletions
|
|
@ -112,3 +112,4 @@ proc initDefines*() =
|
|||
defineSymbol("nimNewRoof")
|
||||
defineSymbol("nimHasRunnableExamples")
|
||||
defineSymbol("nimNewDot")
|
||||
defineSymbol("nimHasNilChecks")
|
||||
|
|
|
|||
|
|
@ -59,6 +59,9 @@ path="$lib/pure"
|
|||
debugger:off
|
||||
line_dir:off
|
||||
dead_code_elim:on
|
||||
@if nimHasNilChecks:
|
||||
nilchecks:off
|
||||
@end
|
||||
@end
|
||||
|
||||
@if release:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue