Skip to content

Commit 4f2ab87

Browse files
committed
builtin: use -Xlinker flags on macos, for compilers != tcc, to pass the rpath folder (fix for folders with spaces)
1 parent 1c34c34 commit 4f2ab87

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

‎vlib/builtin/builtin_d_gcboehm.c.v‎

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,12 @@ $if dynamic_boehm ? {
5353
$if !use_bundled_libgc ? {
5454
#flag -L@VEXEROOT/thirdparty/tcc/lib
5555
#flag -lgc
56-
#flag -Wl,-rpath,"@VEXEROOT/thirdparty/tcc/lib"
56+
$if tinyc {
57+
// this is a problem for compiler paths, containing spaces and commas, but tcc does not support -Xlinker :-|
58+
#flag -Wl,-rpath,"@VEXEROOT/thirdparty/tcc/lib"
59+
} $else {
60+
#flag -Xlinker -rpath -Xlinker "@VEXEROOT/thirdparty/tcc/lib"
61+
}
5762
}
5863
}
5964
$if macos {

0 commit comments

Comments
 (0)