summary refs log tree commit diff stats
path: root/compiler/nimrod.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-xcompiler/nimrod.nim7
1 files changed, 4 insertions, 3 deletions
diff --git a/compiler/nimrod.nim b/compiler/nimrod.nim
index 6c999128c..5b67a10ac 100755
--- a/compiler/nimrod.nim
+++ b/compiler/nimrod.nim
@@ -69,11 +69,12 @@ proc HandleCmdLine() =
             changeFileExt(gProjectFull, exeExt).prependCurDir)
           execExternalProgram(ex & ' ' & service.arguments)
 
-#GC_disableMarkAndSweep()
-
 when defined(GC_setMaxPause):
   GC_setMaxPause 2_000
-GC_disableMarkAndSweep()
+
+when compileOption("gc", "v2"):
+  # the new correct mark&sweet collector is too slow :-/
+  GC_disableMarkAndSweep()
 condsyms.InitDefines()
 HandleCmdLine()
 quit(options.gExitcode)