summary refs log tree commit diff stats
path: root/compiler/main.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-05-29 09:07:24 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-05-29 09:07:24 +0200
commit688c54d8f158ff977161a234374b1cd321ba95f3 (patch)
treee55216bb241ac468dc79cd761fbe9b1e93a37934 /compiler/main.nim
parenta5701d6b71853e683f4d655b6b5ea4a13bec993b (diff)
downloadNim-688c54d8f158ff977161a234374b1cd321ba95f3.tar.gz
compiler API: final cleanups; improve security by diabling 'gorge' and friends
Diffstat (limited to 'compiler/main.nim')
-rw-r--r--compiler/main.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/main.nim b/compiler/main.nim
index c5b2ddca5..ba2537ef8 100644
--- a/compiler/main.nim
+++ b/compiler/main.nim
@@ -9,6 +9,9 @@
 
 # implements the command dispatcher and several commands
 
+when not defined(nimcore):
+  {.error: "nimcore MUST be defined for Nim's core tooling".}
+
 import
   llstream, strutils, ast, astalgo, lexer, syntaxes, renderer, options, msgs,
   os, condsyms, rodread, rodwrite, times,