builtin: fix compilation with `-gc boehm` on some FreeBSD versions (#12289)

pull/12294/head
Bakul Shah 2021-10-25 00:24:08 -07:00 committed by GitHub
parent 45c1c1ab41
commit cc2847f6ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 12 additions and 1 deletions

View File

@ -1,6 +1,17 @@
module builtin
#flag -DGC_THREADS=1
$if freebsd {
// Tested on FreeBSD 13.0-RELEASE-p3, with clang, gcc and tcc:
#flag -DBUS_PAGE_FAULT=T_PAGEFLT
$if !tinyc {
#flag -DGC_THREADS=1
#flag -DGC_BUILTIN_ATOMIC=1
#flag @VEXEROOT/thirdparty/libgc/gc.o
#flag -lpthread
}
} $else {
#flag -DGC_THREADS=1
}
$if static_boehm ? {
$if macos {