summary refs log tree commit diff stats
path: root/lib/system
diff options
context:
space:
mode:
authorDominik Picheta <dominikpicheta@googlemail.com>2016-12-07 22:48:52 +0100
committerGitHub <noreply@github.com>2016-12-07 22:48:52 +0100
commit7f03fd3f65343e5547e9f3153cc9efcb8409d33c (patch)
tree1fbcde52917469298cbe016cb9c9f4ed701f4035 /lib/system
parent8e5f5131927962db956dad6e1b69d9b01a12116d (diff)
parent2ad8e073d87464bd0dc0bbdd4cf7e30915692032 (diff)
downloadNim-7f03fd3f65343e5547e9f3153cc9efcb8409d33c.tar.gz
Merge pull request #5103 from yglukhov/leak-detector-cmdline
Control leakDetector from cmdline
Diffstat (limited to 'lib/system')
-rw-r--r--lib/system/mmdisp.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim
index 63af49e35..431f84bfd 100644
--- a/lib/system/mmdisp.nim
+++ b/lib/system/mmdisp.nim
@@ -20,7 +20,7 @@ const
   alwaysCycleGC = defined(smokeCycles)
   alwaysGC = defined(fulldebug) # collect after every memory
                                 # allocation (for debugging)
-  leakDetector = false
+  leakDetector = defined(leakDetector)
   overwriteFree = defined(nimBurnFree) # overwrite memory with 0xFF before free
   trackAllocationSource = leakDetector