Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion packages/w/wgsl-validator/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,13 @@ package("wgsl-validator")
add_configs("shared", {description = "Build shared library.", default = false, type = "boolean", readonly = true})

if is_plat("windows", "mingw") then
add_syslinks("Advapi32", "User32", "Userenv", "WS2_32", "RuntimeObject", "NtDll")
local libs = {"Advapi32", "User32", "Userenv", "WS2_32", "RuntimeObject", "NtDll"}
if is_plat("mingw") and is_host("linux") then -- mingw sys libs under linux are lowercase
for i, lib in ipairs(libs) do
libs[i] = lib:lower()
end
end
add_syslinks(unpack(libs))
elseif is_plat("linux", "bsd") then
add_syslinks("pthread")
end
Expand Down
Loading