summary refs log tree commit diff stats
path: root/compiler/commands.nim
diff options
context:
space:
mode:
authorAndreas Rumpf <rumpf_a@web.de>2018-07-10 10:39:53 +0200
committerAndreas Rumpf <rumpf_a@web.de>2018-07-10 10:39:53 +0200
commitce01472ff395138a71b3fac35b4e0bb65ca20188 (patch)
treee38138468777861fd90b5fbd19de9323b1015aed /compiler/commands.nim
parent470949f2e0b0b09d660169276a15e04e30a204ee (diff)
downloadNim-ce01472ff395138a71b3fac35b4e0bb65ca20188.tar.gz
refactorings in preparations for the new runtime
Diffstat (limited to 'compiler/commands.nim')
-rw-r--r--compiler/commands.nim9
1 files changed, 5 insertions, 4 deletions
diff --git a/compiler/commands.nim b/compiler/commands.nim
index 866405f9f..ef5a2a40f 100644
--- a/compiler/commands.nim
+++ b/compiler/commands.nim
@@ -215,7 +215,8 @@ proc testCompileOptionArg*(conf: ConfigRef; switch, arg: string, info: TLineInfo
     of "refc":         result = conf.selectedGC == gcRefc
     of "v2":           result = conf.selectedGC == gcV2
     of "markandsweep": result = conf.selectedGC == gcMarkAndSweep
-    of "generational": result = conf.selectedGC == gcGenerational
+    of "generational": result = false
+    of "destructors":  result = conf.selectedGC == gcDestructors
     of "go":           result = conf.selectedGC == gcGo
     of "none":         result = conf.selectedGC == gcNone
     of "stack", "regions": result = conf.selectedGC == gcRegions
@@ -435,9 +436,9 @@ proc processSwitch*(switch, arg: string, pass: TCmdLinePass, info: TLineInfo;
     of "markandsweep":
       conf.selectedGC = gcMarkAndSweep
       defineSymbol(conf.symbols, "gcmarkandsweep")
-    of "generational":
-      conf.selectedGC = gcGenerational
-      defineSymbol(conf.symbols, "gcgenerational")
+    of "destructors":
+      conf.selectedGC = gcDestructors
+      defineSymbol(conf.symbols, "gcdestructors")
     of "go":
       conf.selectedGC = gcGo
       defineSymbol(conf.symbols, "gogc")