Skip to content

Commit

Permalink
builtin: use libgc-threaded on FreeBSD, to get the threaded version…
Browse files Browse the repository at this point in the history
… of libgc (#19294)
  • Loading branch information
kimshrier committed Sep 7, 2023
1 parent 0bf66f5 commit 621cb6d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions vlib/builtin/builtin_d_gcboehm.c.v
Expand Up @@ -25,7 +25,11 @@ $if dynamic_boehm ? {
#flag -I/usr/local/include
#flag -L/usr/local/lib
}
#flag -lgc
$if freebsd {
#flag -lgc-threaded
} $else {
#flag -lgc
}
}
}
} $else {
Expand Down Expand Up @@ -53,8 +57,8 @@ $if dynamic_boehm ? {
}
$if tinyc {
#flag -I/usr/local/include
#flag $first_existing("/usr/local/lib/libgc.a", "/usr/lib/libgc.a")
#flag -lgc
#flag $first_existing("/usr/local/lib/libgc-threaded.a", "/usr/lib/libgc-threaded.a")
#flag -lgc-threaded
}
#flag -lpthread
} $else $if openbsd {
Expand Down

0 comments on commit 621cb6d

Please sign in to comment.