Skip to content

Commit 5ced0bc

Browse files
Update llvm_bin to LLVM 15 (#235)
1 parent eb89bd3 commit 5ced0bc

File tree

1 file changed

+6
-17
lines changed

1 file changed

+6
-17
lines changed

omnibus/config/software/llvm_bin.rb

Lines changed: 6 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,21 @@
11
name "llvm_bin"
2-
LLVM_VERSION = (ENV['LLVM_VERSION'] || "10.0.0").strip
2+
LLVM_VERSION = (ENV['LLVM_VERSION'] || "15.0.7").strip
33
default_version "#{LLVM_VERSION}-3"
44
skip_transitive_dependency_licensing true
55

6-
if linux?
6+
if (macos? || mac_os_x?) && _64_bit?
77
case LLVM_VERSION
8-
when "3.9.1"
9-
if _64_bit?
10-
source_md5 = "cedaa626e3959b5ab467467e6dfb91fe"
11-
else
12-
source_md5 = "8b847e903163054196d3854122363b8b"
13-
end
14-
else
15-
raise "llvm_bin #{LLVM_VERSION} not supported on linux"
16-
end
17-
elsif (macos? || mac_os_x?) && _64_bit?
18-
case LLVM_VERSION
19-
when "3.9.1"
20-
source_md5 = "9fb52b6a648e700f431b459586eb5403"
21-
when "6.0.1"
22-
source_md5 = "435beaff5e309921f4d87c275cad4e03"
238
when "10.0.0"
249
# source_md5 = "edccfa777cba6e160b19bd5b57b12c8f" # 10.0.0-1
2510
# source_md5 = "dc44dbc947b67c76e44df1c9e38df901" # 10.0.0-2
2611
source_md5 = "d32c4d28b8fc50efda3f451e0d8265ea" # 10.0.0-3 (universal darwin)
12+
when "15.0.7"
13+
source_md5 = "0ab0ffe63a0e72346a979d7a0e964b94" # 15.0.7-3 (universal darwin)
2714
else
2815
raise "llvm_bin #{LLVM_VERSION} not supported on osx"
2916
end
17+
else
18+
raise "llvm_bin not supported"
3019
end
3120

3221
source url: "http://crystal-lang.s3.amazonaws.com/llvm/llvm-#{version}-#{ohai['os']}-#{ohai['kernel']['machine']}.tar.gz",

0 commit comments

Comments
 (0)