ruki před 4 roky
rodič
revize
4db23ee526
1 změnil soubory, kde provedl 4 přidání a 5 odebrání
  1. 4 5
      packages/l/llvm/xmake.lua

+ 4 - 5
packages/l/llvm/xmake.lua

@@ -67,11 +67,10 @@ package("llvm")
 
     if on_fetch then
         on_fetch(function (package, opt)
-            local version = try {function() return os.iorunv("llvm-config --version") end}
-            if version then
-                import("core.base.semver")
-                if semver.satisfies(version:trim(), opt.require_version) then
-                    return true
+            if opt.system then
+                local version = try {function() return os.iorunv("llvm-config --version") end}
+                if version then
+                    return {version = version:trim()}
                 end
             end
         end)