summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-29 10:56:36 +0300
committerSaikari <[email protected]>2026-01-29 10:56:36 +0300
commit83ccf8d991d2ad1ed29af150c35f43d1cdd66663 (patch)
tree29b7fac63adae8ac209f2eba4812141253347133
parent1d24aa52a9b03ef79502c8fb061e003d05e23923 (diff)
fix: wrap syslink additions in platform check for Linux
-rw-r--r--tests/projects/nim/link_library/xmake.lua16
1 files changed, 12 insertions, 4 deletions
diff --git a/tests/projects/nim/link_library/xmake.lua b/tests/projects/nim/link_library/xmake.lua
index 76481bd6b..3965e4140 100644
--- a/tests/projects/nim/link_library/xmake.lua
+++ b/tests/projects/nim/link_library/xmake.lua
@@ -14,20 +14,26 @@ target("executablestatic")
add_files("mainlib.nim")
add_deps("staticlib")
add_packages("zlib", "stb")
- add_syslinks("pthread", "m")
+ if is_plat("linux") then
+ add_syslinks("pthread", "m")
+ end
target("executableshared")
set_kind("binary")
add_files("maindll.nim")
add_deps("sharedlib")
- add_syslinks("pthread", "m")
+ if is_plat("linux") then
+ add_syslinks("pthread", "m")
+ end
target("staticlib")
set_kind("static")
add_files("static.nim")
add_includedirs("inc")
add_headerfiles("inc/*.h")
- add_syslinks("pthread", "m")
+ if is_plat("linux") then
+ add_syslinks("pthread", "m")
+ end
add_deps("headers")
target("sharedlib")
@@ -35,5 +41,7 @@ target("sharedlib")
add_files("shared.nim")
add_includedirs("inc")
add_headerfiles("inc/*.h")
- add_syslinks("pthread", "m")
+ if is_plat("linux") then
+ add_syslinks("pthread", "m")
+ end
add_deps("headers")