diff options
author | jcosborn <jcosborn@users.noreply.github.com> | 2018-01-16 18:32:40 -0600 |
---|---|---|
committer | Andreas Rumpf <rumpf_a@web.de> | 2018-01-17 01:32:40 +0100 |
commit | 399c5e38b7bf7a0998ca9ed4bce57c7092d59229 (patch) | |
tree | fdda1d6225bb49c781c08efa7cf17da313ccd8c0 | |
parent | 136f1a208ab6d6283f65222be98d103abeeed7bc (diff) | |
download | Nim-399c5e38b7bf7a0998ca9ed4bce57c7092d59229.tar.gz |
don't make optNilCheck default to on for now (#7058)
* don't make optNilCheck default to on for now * add conditional symbol nimHasNilChecks
-rw-r--r-- | compiler/condsyms.nim | 1 | ||||
-rw-r--r-- | config/nim.cfg | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/compiler/condsyms.nim b/compiler/condsyms.nim index a52214e73..0be2899be 100644 --- a/compiler/condsyms.nim +++ b/compiler/condsyms.nim @@ -112,3 +112,4 @@ proc initDefines*() = defineSymbol("nimNewRoof") defineSymbol("nimHasRunnableExamples") defineSymbol("nimNewDot") + defineSymbol("nimHasNilChecks") diff --git a/config/nim.cfg b/config/nim.cfg index a146c4ebf..9fddce90a 100644 --- a/config/nim.cfg +++ b/config/nim.cfg @@ -59,6 +59,9 @@ path="$lib/pure" debugger:off line_dir:off dead_code_elim:on + @if nimHasNilChecks: + nilchecks:off + @end @end @if release: |