IC: produce a good error message for when the compiler was built without the incremental recompilation feature

This commit is contained in:
Andreas Rumpf
2018-11-20 23:54:58 +01:00
parent 8285e24805
commit 574cdfc156

View File

@@ -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