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

OpenBSD: support Boehm-GC, X11 and Sqlite (#10300)

This commit is contained in:
Uwe Krüger
2021-06-01 21:28:30 +02:00
committed by GitHub
parent 14d09aa7c2
commit ce3e71cb8e
4 changed files with 31 additions and 15 deletions

View File

@@ -8,18 +8,26 @@ $if static_boehm ? {
#flag $first_existing("/opt/homebrew/lib/libgc.a", "/usr/local/lib/libgc.a")
} $else $if linux {
#flag -l:libgc.a
} $else $if openbsd {
#flag -I/usr/local/include
#flag /usr/local/lib/libgc.a
#flag -lpthread
} $else {
#flag -lgc
}
} $else {
$if macos {
#pkgconfig bdw-gc
} $else $if openbsd || freebsd {
#flag -I/usr/local/include
#flag -L/usr/local/lib
}
$if windows {
#flag -I@VEXEROOT/thirdparty/libgc/include
#flag -L@VEXEROOT/thirdparty/libgc
} $else {
#flag -lgc
}
#flag -lgc
}
$if gcboehm_leak ? {

View File

@@ -85,7 +85,7 @@ fn print_backtrace_skipping_top_frames_linux(skipframes int) bool {
$if no_backtrace ? {
return false
} $else {
$if !freestanding {
$if linux && !freestanding {
$if tinyc {
C.tcc_backtrace(c'Backtrace')
return false