diff options
author | Araq <rumpf_a@web.de> | 2013-01-31 17:24:55 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2013-01-31 17:24:55 +0100 |
commit | 65fdd641a9cf72be36af750a70245ebc1f16bf21 (patch) | |
tree | 1c7d5bdee6645b7c7da531ca80c89b4d4401af5f /compiler/nimrod.nim | |
parent | 2a2b6307578e481b125d5315893044f4dea81039 (diff) | |
download | Nim-65fdd641a9cf72be36af750a70245ebc1f16bf21.tar.gz |
revert to old GC; use --gc:v2 to activate the new GC
Diffstat (limited to 'compiler/nimrod.nim')
-rwxr-xr-x | compiler/nimrod.nim | 7 |
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) |