summary refs log tree commit diff stats
diff options
context:
space:
mode:
-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: