summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-11-20 23:54:58 +0100
committerAndreas Rumpf <rumpf_a@web.de>2018-11-20 23:55:06 +0100
commit574cdfc1569ffeef7fa9e6f7c28339edff93cd87 (patch)
treec4d7172775cffbbef403063a47a6c90a5e417436 /compiler/commands.nim
parent8285e24805d505ec7904a3cd1b78fa90ba0df789 (diff)
downloadNim-574cdfc1569ffeef7fa9e6f7c28339edff93cd87.tar.gz
IC: produce a good error message for when the compiler was built without the incremental recompilation feature
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r--compiler/commands.nim4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 14141696f..a26672a3c 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -643,6 +643,10 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
     expectNoArg(conf, switch, arg, pass, info)
     helpOnError(conf, pass)
   of "symbolfiles", "incremental":
+    when not defined(nimIncremental):
+      localError(conf, info, "the compiler was not built with " &
+        "incremental compilation features; bootstrap with " &
+        "-d:nimIncremental to enable")
     case arg.normalize
     of "on": conf.symbolFiles = v2Sf
     of "off": conf.symbolFiles = disabledSf