瀏覽代碼

improve to fetch openmp #5610 (#5626)

ruki 11 月之前
父節點
當前提交
2c8f70000c
共有 1 個文件被更改,包括 3 次插入4 次删除
  1. 3 4
      packages/o/openmp/xmake.lua

+ 3 - 4
packages/o/openmp/xmake.lua

@@ -19,10 +19,9 @@ package("openmp")
     end)
 
     on_fetch(function (package)
-        for _, dep in ipairs(package:orderdeps()) do
-            if not dep:fetch() then
-                return
-            end
+        local libomp = package:dep("libomp")
+        if libomp and not libomp:fetch() then
+            return
         end
         local result = {}
         if package.has_tool then