Skip to content

Commit 15c48d4

Browse files
committed
builtin: fix for tcc builds on paths with spaces on linux
1 parent 4f2ab87 commit 15c48d4

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

‎vlib/builtin/builtin_d_gcboehm.c.v‎

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,13 +51,17 @@ $if dynamic_boehm ? {
5151
#flag @VEXEROOT/thirdparty/libgc/gc.o
5252
} $else {
5353
$if !use_bundled_libgc ? {
54-
#flag -L@VEXEROOT/thirdparty/tcc/lib
55-
#flag -lgc
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"
54+
$if macos {
55+
#flag -L@VEXEROOT/thirdparty/tcc/lib
56+
#flag -lgc
57+
$if tinyc {
58+
// this is a problem for compiler paths, containing spaces and commas, but tcc does not support -Xlinker :-|
59+
#flag -Wl,-rpath,"@VEXEROOT/thirdparty/tcc/lib"
60+
} $else {
61+
#flag -Xlinker -rpath -Xlinker "@VEXEROOT/thirdparty/tcc/lib"
62+
}
5963
} $else {
60-
#flag -Xlinker -rpath -Xlinker "@VEXEROOT/thirdparty/tcc/lib"
64+
#flag @VEXEROOT/thirdparty/tcc/lib/libgc.a
6165
}
6266
}
6367
}

0 commit comments

Comments
 (0)