builtin,v.pkgconfig: use brew's libgc on macos

pull/9468/head
Delyan Angelov 2021-03-25 07:28:30 +02:00
parent 1590783f02
commit b0878d3a92
3 changed files with 9 additions and 3 deletions

View File

@ -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

View File

@ -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()

View File

@ -13,8 +13,9 @@ const (
'/usr/lib64/pkgconfig',
'/usr/lib/pkgconfig',
'/usr/share/pkgconfig',
'/opt/homebrew/lib/pkgconfig',
]
version = '0.3.0'
version = '0.3.1'
)
pub struct Options {