diff options
author | Araq <rumpf_a@web.de> | 2011-05-17 21:14:30 +0200 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2011-05-17 21:14:30 +0200 |
commit | 9207492bb997b414f45f24fed3ec5e942286d259 (patch) | |
tree | a672cb8678875922c313521be94d9fec0a5673ce /lib/system | |
parent | aeb0506132bc706750840ba0a79b486745e34c4e (diff) | |
download | Nim-9207492bb997b414f45f24fed3ec5e942286d259.tar.gz |
lexer, parser cleanup; boehm gc for mac os x
Diffstat (limited to 'lib/system')
-rwxr-xr-x | lib/system/mmdisp.nim | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/system/mmdisp.nim b/lib/system/mmdisp.nim index 97446befa..f56bb233f 100755 --- a/lib/system/mmdisp.nim +++ b/lib/system/mmdisp.nim @@ -65,6 +65,10 @@ proc raiseOutOfMem() {.noreturn.} = when defined(boehmgc): when defined(windows): const boehmLib = "boehmgc.dll" + elif defined(macosx): + const boehmLib = "libgc.dylib" + + proc boehmGCinit {.importc: "GC_init", dynlib: boehmLib.} else: const boehmLib = "/usr/lib/libgc.so.1" @@ -93,7 +97,8 @@ when defined(boehmgc): proc dealloc(p: Pointer) = boehmDealloc(p) - proc initGC() = nil + proc initGC() = + when defined(macosx): boehmGCinit() #boehmGCincremental() |