summary refs log tree commit diff stats
path: root/compiler/nimfix.nim
diff options
context:
space:
mode:
Diffstat (limited to 'compiler/nimfix.nim')
-rw-r--r--compiler/nimfix.nim3
1 files changed, 3 insertions, 0 deletions
diff --git a/compiler/nimfix.nim b/compiler/nimfix.nim
index 60ebb48e5..ffab2717a 100644
--- a/compiler/nimfix.nim
+++ b/compiler/nimfix.nim
@@ -98,6 +98,9 @@ proc handleCmdLine() =
     processCmdLine(passCmd2, "")
     mainCommand()
 
+when compileOption("gc", "v2") or compileOption("gc", "refc"):
+  GC_disableMarkAndSweep()
+
 condsyms.initDefines()
 defineSymbol "nimfix"
 handleCmdline()