Skip to content

Commit c0a3972

Browse files
committed
Disable GC cleanup at compiler shutdown (without -lowmem), like DMD now
1 parent b02c501 commit c0a3972

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

dmd/root/rmem.d

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,10 @@ extern (C++) struct Mem
132132
{
133133
version (IN_LLVM)
134134
{
135-
__gshared string[] disable_options = [ "gcopt=disable:1" ];
135+
static if(__VERSION__ < 2085)
136+
__gshared string[] disable_options = [ "gcopt=disable:1" ];
137+
else
138+
__gshared string[] disable_options = [ "gcopt=disable:1 cleanup:none" ];
136139
rt_options = disable_options;
137140
}
138141
_isGCEnabled = false;

0 commit comments

Comments
 (0)