Parcourir la source

wgpu-native: Add pthread and dl syslinks on Linux (#2634)

Jérôme Leclercq il y a 2 ans
Parent
commit
db365bc95c
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      packages/w/wgpu-native/xmake.lua

+ 6 - 0
packages/w/wgpu-native/xmake.lua

@@ -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")