improve llvm

pull/411/head^2
ruki 4 years ago
parent 4afccc25b6
commit 4db23ee526
No known key found for this signature in database
GPG Key ID: 809EF06AD42725BD
  1. 9
      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)

Loading…
Cancel
Save