builtin: fix sporadic linking failures on `v -cc gcc -gc boehm examples/hello_world.v`
parent
844ba2a177
commit
58ebc0680e
|
@ -32,7 +32,6 @@ $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
|
||||||
#flag -lpthread
|
|
||||||
$if (prod && !tinyc && !debug) || !(amd64 || arm64 || i386 || arm32) {
|
$if (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
|
||||||
|
@ -40,6 +39,7 @@ $if dynamic_boehm ? {
|
||||||
#flag @VEXEROOT/thirdparty/tcc/lib/libgc.a
|
#flag @VEXEROOT/thirdparty/tcc/lib/libgc.a
|
||||||
}
|
}
|
||||||
#flag -ldl
|
#flag -ldl
|
||||||
|
#flag -lpthread
|
||||||
} $else $if freebsd {
|
} $else $if freebsd {
|
||||||
// Tested on FreeBSD 13.0-RELEASE-p3, with clang, gcc and tcc:
|
// Tested on FreeBSD 13.0-RELEASE-p3, with clang, gcc and tcc:
|
||||||
#flag -DBUS_PAGE_FAULT=T_PAGEFLT
|
#flag -DBUS_PAGE_FAULT=T_PAGEFLT
|
||||||
|
|
Loading…
Reference in New Issue