IC: produce a good error message for when the compiler was built without the incremental recompilation feature
This commit is contained in:
parent
8285e24805
commit
574cdfc156
1 changed files with 4 additions and 0 deletions
|
|
@ -643,6 +643,10 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
||||||
expectNoArg(conf, switch, arg, pass, info)
|
expectNoArg(conf, switch, arg, pass, info)
|
||||||
helpOnError(conf, pass)
|
helpOnError(conf, pass)
|
||||||
of "symbolfiles", "incremental":
|
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
|
case arg.normalize
|
||||||
of "on": conf.symbolFiles = v2Sf
|
of "on": conf.symbolFiles = v2Sf
|
||||||
of "off": conf.symbolFiles = disabledSf
|
of "off": conf.symbolFiles = disabledSf
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue