|
|
|
@ -14,10 +14,15 @@ package("llvm") |
|
|
|
|
add_versions("11.0.0", "db5b3a44f8f784ebc71f716b54eb63c0d8d21aead12449f36291ab00820271c7") |
|
|
|
|
add_versions("14.0.0", "c1e1ddf11aa73c58073956d9217086550544328ed5e6ec64c1a709badb231711") |
|
|
|
|
end |
|
|
|
|
elseif is_host("macosx") and os.arch() == "x86_64" then |
|
|
|
|
set_urls("https://github.com/llvm/llvm-project/releases/download/llvmorg-$(version)/clang+llvm-$(version)-x86_64-apple-darwin.tar.xz") |
|
|
|
|
add_versions("11.0.0", "b93886ab0025cbbdbb08b46e5e403a462b0ce034811c929e96ed66c2b07fe63a") |
|
|
|
|
add_versions("14.0.0", "cf5af0f32d78dcf4413ef6966abbfd5b1445fe80bba57f2ff8a08f77e672b9b3") |
|
|
|
|
elseif is_host("macosx") then |
|
|
|
|
if os.arch() == "x86_64" then |
|
|
|
|
set_urls("https://github.com/llvm/llvm-project/releases/download/llvmorg-$(version)/clang+llvm-$(version)-x86_64-apple-darwin.tar.xz") |
|
|
|
|
add_versions("11.0.0", "b93886ab0025cbbdbb08b46e5e403a462b0ce034811c929e96ed66c2b07fe63a") |
|
|
|
|
add_versions("14.0.0", "cf5af0f32d78dcf4413ef6966abbfd5b1445fe80bba57f2ff8a08f77e672b9b3") |
|
|
|
|
elseif os.arch() == "arm64" then |
|
|
|
|
set_urls("https://github.com/llvm/llvm-project/releases/download/llvmorg-$(version)/clang+llvm-$(version)-arm64-apple-darwin21.0.tar.xz") |
|
|
|
|
add_versions("15.0.0", "cfd5c3fa07d7fccea0687f5b4498329a6172b7a15bbc45b547d0ac86bd3452a5") |
|
|
|
|
end |
|
|
|
|
elseif is_host("bsd") then |
|
|
|
|
if os.arch() == "x86_64" then |
|
|
|
|
set_urls("https://github.com/llvm/llvm-project/releases/download/llvmorg-$(version)/clang+llvm-$(version)-amd64-unknown-freebsd13.tar.xz") |
|
|
|
@ -73,7 +78,7 @@ package("llvm") |
|
|
|
|
end |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|
on_install("@macosx|x86_64", "@windows", "@msys", "@bsd", function (package) |
|
|
|
|
on_install("@macosx", "@windows", "@msys", "@bsd", function (package) |
|
|
|
|
os.cp("*", package:installdir()) |
|
|
|
|
end) |
|
|
|
|
|
|
|
|
|