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

master
Delyan Angelov 2022-06-20 21:29:19 +03:00
parent 1caff5b379
commit 473d26ce47
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ $if dynamic_boehm ? {
$if macos || linux { $if macos || linux {
#flag -DGC_PTHREADS=1 #flag -DGC_PTHREADS=1
#flag -I @VEXEROOT/thirdparty/libgc/include #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 // TODO: replace the architecture check with a `!$exists("@VEXEROOT/thirdparty/tcc/lib/libgc.a")` comptime call
#flag @VEXEROOT/thirdparty/libgc/gc.o #flag @VEXEROOT/thirdparty/libgc/gc.o
} $else { } $else {