diff options
-rw-r--r-- | changelog.md | 2 | ||||
-rw-r--r-- | compiler/commands.nim | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/changelog.md b/changelog.md index 5ae8660f3..6d4ccd4b0 100644 --- a/changelog.md +++ b/changelog.md @@ -12,6 +12,8 @@ - The `gc:v2` option is removed. +- The `mainmodule` and `m` options are removed. + - The `threads:on` option is now the default. - Optional parameters in combination with `: body` syntax (RFC #405) are now opt-in via diff --git a/compiler/commands.nim b/compiler/commands.nim index b1765489c..c2ed01891 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -1094,7 +1094,7 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; processOnOffSwitchG(conf, {optEnableDeepCopy}, arg, pass, info) of "": # comes from "-" in for example: `nim c -r -` (gets stripped from -) handleStdinInput(conf) - of "nilseqs", "nilchecks", "mainmodule", "m", "symbol", "taintmode", "cs", "deadcodeelim": warningOptionNoop(switch) + of "nilseqs", "nilchecks", "symbol", "taintmode", "cs", "deadcodeelim": warningOptionNoop(switch) of "nimmainprefix": conf.nimMainPrefix = arg else: if strutils.find(switch, '.') >= 0: options.setConfigVar(conf, switch, arg) |