瀏覽代碼

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

Jérôme Leclercq 2 年之前
父節點
當前提交
db365bc95c
共有 1 個文件被更改,包括 6 次插入0 次删除
  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")