introduce --oldgensym:on rather than --useVersion
This commit is contained in:
parent
07a986afa1
commit
cb0450398a
2 changed files with 4 additions and 4 deletions
|
|
@ -13,7 +13,7 @@
|
||||||
- The language definition and compiler are now stricter about ``gensym``'ed
|
- The language definition and compiler are now stricter about ``gensym``'ed
|
||||||
symbols in hygienic templates. See the section in the
|
symbols in hygienic templates. See the section in the
|
||||||
[manual](https://nim-lang.org/docs/manual.html#templates-hygiene-in-templates)
|
[manual](https://nim-lang.org/docs/manual.html#templates-hygiene-in-templates)
|
||||||
for further details. Use the compiler switch `--useVersion:0.19` for a
|
for further details. Use the compiler switch `--oldgensym:on` for a
|
||||||
transition period.
|
transition period.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -783,15 +783,15 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
|
||||||
of "expandmacro":
|
of "expandmacro":
|
||||||
expectArg(conf, switch, arg, pass, info)
|
expectArg(conf, switch, arg, pass, info)
|
||||||
conf.macrosToExpand[arg] = "T"
|
conf.macrosToExpand[arg] = "T"
|
||||||
|
of "oldgensym":
|
||||||
|
processOnOffSwitchG(conf, {optNimV019}, arg, pass, info)
|
||||||
of "useversion":
|
of "useversion":
|
||||||
expectArg(conf, switch, arg, pass, info)
|
expectArg(conf, switch, arg, pass, info)
|
||||||
case arg
|
case arg
|
||||||
of "0.19":
|
|
||||||
conf.globalOptions.incl optNimV019
|
|
||||||
of "1.0":
|
of "1.0":
|
||||||
discard "the default"
|
discard "the default"
|
||||||
else:
|
else:
|
||||||
localError(conf, info, "unknown Nim version; currently supported values are: {0.19, 1.0}")
|
localError(conf, info, "unknown Nim version; currently supported values are: {1.0}")
|
||||||
of "":
|
of "":
|
||||||
conf.projectName = "-"
|
conf.projectName = "-"
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue