summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorjcosborn <jcosborn@users.noreply.github.com>2018-01-16 18:32:40 -0600
committerAndreas Rumpf <rumpf_a@web.de>2018-01-17 01:32:40 +0100
commit399c5e38b7bf7a0998ca9ed4bce57c7092d59229 (patch)
treefdda1d6225bb49c781c08efa7cf17da313ccd8c0
parent136f1a208ab6d6283f65222be98d103abeeed7bc (diff)
downloadNim-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.nim1
-rw-r--r--config/nim.cfg3
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: