From c53a344d2f0da03847d2c33d6e7b5a961fcb3f9c Mon Sep 17 00:00:00 2001 From: Ekopalypse <47723516+Ekopalypse@users.noreply.github.com> Date: Sat, 19 Jun 2021 16:06:25 +0200 Subject: [PATCH] builtin: allow a static gc build on windows (#10510) --- vlib/builtin/builtin_d_gcboehm.v | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/vlib/builtin/builtin_d_gcboehm.v b/vlib/builtin/builtin_d_gcboehm.v index 745ce3f629..23f3141706 100644 --- a/vlib/builtin/builtin_d_gcboehm.v +++ b/vlib/builtin/builtin_d_gcboehm.v @@ -12,6 +12,11 @@ $if static_boehm ? { #flag -I/usr/local/include #flag /usr/local/lib/libgc.a #flag -lpthread + } $else $if windows { + #define GC_NOT_DLL 1 + #flag -I@VEXEROOT/thirdparty/libgc/include + #flag -L@VEXEROOT/thirdparty/libgc + #flag -lgc } $else { #flag -lgc }