Skip to content

Commit

Permalink
wgpu-native: Add pthread and dl syslinks on Linux (#2634)
Browse files Browse the repository at this point in the history
  • Loading branch information
SirLynix authored Sep 21, 2023
1 parent 2be3029 commit db365bc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions packages/w/wgpu-native/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,12 @@ package("wgpu-native")
end
end)

on_load("linux", function (package)
if not package:config("shared") then
package:add("syslinks", "dl", "pthread")
end
end)

on_load("macosx", function (package)
if not package:config("shared") then
package:add("syslinks", "objc")
Expand Down

0 comments on commit db365bc

Please sign in to comment.