File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,13 @@ $if windows {
6
6
#flag -I@VROOT/thirdparty/libgc/include
7
7
#flag -L@VROOT/thirdparty/libgc
8
8
}
9
+ $if macos {
10
+ #pkgconfig bdw-gc
11
+ }
9
12
10
13
#include <gc.h>
11
14
12
- #flag linux -lgc
13
- #flag darwin @VROOT/thirdparty/bdwgc/extra/.libs/gc.o
15
+ #flag -lgc
14
16
15
17
fn C.GC_MALLOC (n size_t) voidptr
16
18
Original file line number Diff line number Diff line change @@ -9,3 +9,6 @@ fn C.GC_MALLOC(n size_t) voidptr
9
9
fn C.GC_REALLOC (ptr voidptr , n size_t) voidptr
10
10
11
11
fn C.GC_FREE (ptr voidptr )
12
+
13
+ // fn C.CHECK_LEAKS()
14
+ fn C.GC_gcollect ()
Original file line number Diff line number Diff line change @@ -13,8 +13,9 @@ const (
13
13
'/usr/lib64/pkgconfig' ,
14
14
'/usr/lib/pkgconfig' ,
15
15
'/usr/share/pkgconfig' ,
16
+ '/opt/homebrew/lib/pkgconfig' ,
16
17
]
17
- version = '0.3.0 '
18
+ version = '0.3.1 '
18
19
)
19
20
20
21
pub struct Options {
You can’t perform that action at this time.
0 commit comments