ruki vor 4 Jahren
Ursprung
Commit
4db23ee526
1 geänderte Dateien mit 4 neuen und 5 gelöschten Zeilen
  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)