builtin: fix sporadic linking failures on `v -cc gcc -gc boehm examples/hello_world.v`

master
Delyan Angelov 2022-05-30 15:17:01 +03:00
parent 844ba2a177
commit 58ebc0680e
No known key found for this signature in database
GPG Key ID: 66886C0F12D595ED
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,6 @@ $if dynamic_boehm ? {
$if macos || linux {
#flag -DGC_PTHREADS=1
#flag -I@VEXEROOT/thirdparty/libgc/include
#flag -lpthread
$if (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
@ -40,6 +39,7 @@ $if dynamic_boehm ? {
#flag @VEXEROOT/thirdparty/tcc/lib/libgc.a
}
#flag -ldl
#flag -lpthread
} $else $if freebsd {
// Tested on FreeBSD 13.0-RELEASE-p3, with clang, gcc and tcc:
#flag -DBUS_PAGE_FAULT=T_PAGEFLT