medvednikov

/

vqPublic
0 commits21 issue12 pull requests0 contributorsDiscussionsProjectsCI

builtin: Simplify linking with libgc #19

Openprogrammingkidxwants to mergepr/26695intomaster· last Mar 6
1 files changed+1-12
vlib/builtin/builtin_d_gcboehm.c.v+1-12

@@ -51,18 +51,7 @@ $if dynamic_boehm ? {

5151 #flag @VEXEROOT/thirdparty/libgc/gc.o

5252 } $else {

5353 $if !use_bundled_libgc ? {

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- }

63- } $else {

64- #flag @VEXEROOT/thirdparty/tcc/lib/libgc.a

65- }

54+ #flag @VEXEROOT/thirdparty/tcc/lib/libgc.a

6655 }

6756 }

6857 $if macos {