From 574cdfc1569ffeef7fa9e6f7c28339edff93cd87 Mon Sep 17 00:00:00 2001 From: Andreas Rumpf Date: Tue, 20 Nov 2018 23:54:58 +0100 Subject: IC: produce a good error message for when the compiler was built without the incremental recompilation feature --- compiler/commands.nim | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'compiler') 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 -- cgit 1.4.1-2-gfad0