mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
builtin,v.pkgconfig: use brew's libgc on macos
This commit is contained in:
@@ -6,11 +6,13 @@ $if windows {
|
||||
#flag -I@VROOT/thirdparty/libgc/include
|
||||
#flag -L@VROOT/thirdparty/libgc
|
||||
}
|
||||
$if macos {
|
||||
#pkgconfig bdw-gc
|
||||
}
|
||||
|
||||
#include <gc.h>
|
||||
|
||||
#flag linux -lgc
|
||||
#flag darwin @VROOT/thirdparty/bdwgc/extra/.libs/gc.o
|
||||
#flag -lgc
|
||||
|
||||
fn C.GC_MALLOC(n size_t) voidptr
|
||||
|
||||
|
||||
@@ -9,3 +9,6 @@ fn C.GC_MALLOC(n size_t) voidptr
|
||||
fn C.GC_REALLOC(ptr voidptr, n size_t) voidptr
|
||||
|
||||
fn C.GC_FREE(ptr voidptr)
|
||||
|
||||
// fn C.CHECK_LEAKS()
|
||||
fn C.GC_gcollect()
|
||||
|
||||
Reference in New Issue
Block a user