From 8a5b43d30a77e89584b5226c130d21ade5f872de Mon Sep 17 00:00:00 2001 From: Scott Wadden Date: Sat, 16 Sep 2023 19:39:15 -0300 Subject: [PATCH] Only link with -static on windows --- src/config.nims | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config.nims b/src/config.nims index fcf3729c..8a494520 100644 --- a/src/config.nims +++ b/src/config.nims @@ -1,7 +1,9 @@ --threads:on --mm:orc --tls_emulation:off ---pass_l:"-static" + +if host_os == "windows": + --pass_l:"-static" --warning:"LockLevel:off" --warning:"UseBase:off"