summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--changelog.md2
-rw-r--r--compiler/commands.nim6
2 files changed, 4 insertions, 4 deletions
diff --git a/changelog.md b/changelog.md
index 35639adc4..f135fa585 100644
--- a/changelog.md
+++ b/changelog.md
@@ -13,7 +13,7 @@
 - The language definition and compiler are now stricter about ``gensym``'ed
   symbols in hygienic templates. See the section in the
   [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.
 
 
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 1123996c1..386b29f8f 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -783,15 +783,15 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
   of "expandmacro":
     expectArg(conf, switch, arg, pass, info)
     conf.macrosToExpand[arg] = "T"
+  of "oldgensym":
+    processOnOffSwitchG(conf, {optNimV019}, arg, pass, info)
   of "useversion":
     expectArg(conf, switch, arg, pass, info)
     case arg
-    of "0.19":
-      conf.globalOptions.incl optNimV019
     of "1.0":
       discard "the default"
     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 "":
     conf.projectName = "-"
   else:
ranger/keyapi.py?id=70aec44f8b5fb168e5f10fbeec332be75f0d67f0'>70aec44f ^
70aec44f ^




79f37c34 ^

84701093 ^



70aec44f ^
84701093 ^




70aec44f ^

70aec44f ^








84701093 ^





































70aec44f ^
84701093 ^













7b4ef308 ^
84701093 ^

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108