Browse Source

Update xmake.lua (#735)

ruki 3 năm trước cách đây
mục cha
commit
a46cef21f4
1 tập tin đã thay đổi với 5 bổ sung2 xóa
  1. 5 2
      packages/o/openmp/xmake.lua

+ 5 - 2
packages/o/openmp/xmake.lua

@@ -58,8 +58,11 @@ package("openmp")
                 return
                 return
             end
             end
         end
         end
-        -- need to detect the existance of flags
-        return {}
+        -- we need fetch the installed flags in on_load
+        local manifest = package:manifest_load()
+        if manifest then
+            return manifest.vars
+        end
     end)
     end)
 
 
     on_install("linux", "macosx", "windows", function (package)
     on_install("linux", "macosx", "windows", function (package)