mirror of
https://github.com/nim-lang/Nim.git
synced 2026-04-19 22:10:33 +00:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user