diff options
author | Timothee Cour <timothee.cour2@gmail.com> | 2021-02-16 11:20:01 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-16 20:20:01 +0100 |
commit | b187caeb87602975642a589ea39b706a56e5c830 (patch) | |
tree | 4c8f55b076570d54aedbfcad6d3b23df6c536259 /compiler | |
parent | 71feb96c636f9e0f9a3520733a8f266909e72977 (diff) | |
download | Nim-b187caeb87602975642a589ea39b706a56e5c830.tar.gz |
document `since` (#17048)
* document `since` * address comment
Diffstat (limited to 'compiler')
-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": |