@@ -29,26 +29,24 @@ load("@toolchains_llvm//toolchain:rules.bzl", "llvm_toolchain")
29
29
# When updating this version, also update the versions associated with
30
30
# llvm_toolchain below, sys_paths_test in the workflows file, and xcompile_test
31
31
# through the `llvm_toolchain_with_sysroot` toolchain.
32
- LLVM_VERSION = "15.0.6"
32
+ LLVM_VERSION = "16.0.0"
33
+
34
+ LLVM_VERSIONS = {
35
+ "" : "16.0.0" ,
36
+ "darwin-aarch64" : "16.0.5" ,
37
+ "darwin-x86_64" : "15.0.7" ,
38
+ }
33
39
34
40
llvm_toolchain (
35
41
name = "llvm_toolchain" ,
36
- llvm_versions = {
37
- "" : "15.0.6" ,
38
- "darwin-aarch64" : "15.0.7" ,
39
- "darwin-x86_64" : "15.0.7" ,
40
- },
42
+ llvm_versions = LLVM_VERSIONS ,
41
43
)
42
44
43
45
# Example toolchain with user provided URLs.
44
46
# TODO(siddharthab): Add test.
45
47
llvm_toolchain (
46
48
name = "llvm_toolchain_with_urls" ,
47
- llvm_versions = {
48
- "" : "15.0.6" ,
49
- "darwin-aarch64" : "15.0.7" ,
50
- "darwin-x86_64" : "15.0.7" ,
51
- },
49
+ llvm_versions = LLVM_VERSIONS ,
52
50
sha256 = {
53
51
"" : "38bc7f5563642e73e69ac5626724e206d6d539fbef653541b34cae0ba9c3f036" ,
54
52
"darwin-aarch64" : "867c6afd41158c132ef05a8f1ddaecf476a26b91c85def8e124414f9a9ba188d" ,
@@ -96,7 +94,7 @@ llvm_toolchain(
96
94
llvm_version = LLVM_VERSION ,
97
95
# For this toolchain to work, the LLVM distribution archive would need to be unpacked here.
98
96
# A path in /tmp to be part of system tmp cleanup schedule.
99
- toolchain_roots = {"" : "/tmp/llvm-15 " },
97
+ toolchain_roots = {"" : "/tmp/llvm-16 " },
100
98
)
101
99
102
100
## Toolchain example with a sysroot.
@@ -117,11 +115,7 @@ filegroup(
117
115
118
116
llvm_toolchain (
119
117
name = "llvm_toolchain_with_sysroot" ,
120
- llvm_versions = {
121
- "" : "15.0.6" ,
122
- "darwin-x86_64" : "15.0.7" ,
123
- "darwin-aarch64" : "15.0.7" ,
124
- },
118
+ llvm_versions = LLVM_VERSIONS ,
125
119
sysroot = {
126
120
"linux-x86_64" : "@org_chromium_sysroot_linux_x64//:sysroot" ,
127
121
},
0 commit comments