From b187caeb87602975642a589ea39b706a56e5c830 Mon Sep 17 00:00:00 2001 From: Timothee Cour Date: Tue, 16 Feb 2021 11:20:01 -0800 Subject: document `since` (#17048) * document `since` * address comment --- compiler/commands.nim | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'compiler') 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": -- cgit 1.4.1-2-gfad0