diff options
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r-- | compiler/commands.nim | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim index 0c835a2f7..fa53a3ce6 100644 --- a/compiler/commands.nim +++ b/compiler/commands.nim @@ -940,8 +940,6 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "1.0": defineSymbol(conf.symbols, "NimMajor", "1") defineSymbol(conf.symbols, "NimMinor", "0") - # always be compatible with 1.0.100: - defineSymbol(conf.symbols, "NimPatch", "100") # old behaviors go here: defineSymbol(conf.symbols, "nimOldRelativePathBehavior") undefSymbol(conf.symbols, "nimDoesntTrackDefects") @@ -950,11 +948,11 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo; of "1.2": defineSymbol(conf.symbols, "NimMajor", "1") defineSymbol(conf.symbols, "NimMinor", "2") - # always be compatible with 1.2.100: - defineSymbol(conf.symbols, "NimPatch", "100") conf.globalOptions.incl optNimV12Emulation else: - localError(conf, info, "unknown Nim version; currently supported values are: {1.0}") + localError(conf, info, "unknown Nim version; currently supported values are: `1.0`, `1.2`") + # always be compatible with 1.x.100: + defineSymbol(conf.symbols, "NimPatch", "100") of "benchmarkvm": processOnOffSwitchG(conf, {optBenchmarkVM}, arg, pass, info) of "profilevm": |