1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

builtin: enforce linking to libgc.a with -prod on macos

This commit is contained in:
Delyan Angelov 2022-06-20 21:29:19 +03:00
parent 1caff5b379
commit 473d26ce47

View File

@ -32,7 +32,7 @@ $if dynamic_boehm ? {
$if macos || linux {
#flag -DGC_PTHREADS=1
#flag -I @VEXEROOT/thirdparty/libgc/include
$if (prod && !tinyc && !debug) || !(amd64 || arm64 || i386 || arm32) {
$if (!macos && prod && !tinyc && !debug) || !(amd64 || arm64 || i386 || arm32) {
// TODO: replace the architecture check with a `!$exists("@VEXEROOT/thirdparty/tcc/lib/libgc.a")` comptime call
#flag @VEXEROOT/thirdparty/libgc/gc.o
} $else {