Przeglądaj źródła

improve to fetch openmp #5610 (#5626)

ruki 1 rok temu
rodzic
commit
2c8f70000c
1 zmienionych plików z 3 dodań i 4 usunięć
  1. 3 4
      packages/o/openmp/xmake.lua

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

@@ -19,10 +19,9 @@ package("openmp")
     end)
     end)
 
 
     on_fetch(function (package)
     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
         end
         local result = {}
         local result = {}
         if package.has_tool then
         if package.has_tool then