@@ -29,26 +29,24 @@ load("@toolchains_llvm//toolchain:rules.bzl", "llvm_toolchain")
2929# When updating this version, also update the versions associated with
3030# llvm_toolchain below, sys_paths_test in the workflows file, and xcompile_test
3131# 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+ }
3339
3440llvm_toolchain (
3541 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 ,
4143)
4244
4345# Example toolchain with user provided URLs.
4446# TODO(siddharthab): Add test.
4547llvm_toolchain (
4648 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 ,
5250 sha256 = {
5351 "" : "38bc7f5563642e73e69ac5626724e206d6d539fbef653541b34cae0ba9c3f036" ,
5452 "darwin-aarch64" : "867c6afd41158c132ef05a8f1ddaecf476a26b91c85def8e124414f9a9ba188d" ,
@@ -96,7 +94,7 @@ llvm_toolchain(
9694 llvm_version = LLVM_VERSION ,
9795 # For this toolchain to work, the LLVM distribution archive would need to be unpacked here.
9896 # A path in /tmp to be part of system tmp cleanup schedule.
99- toolchain_roots = {"" : "/tmp/llvm-15 " },
97+ toolchain_roots = {"" : "/tmp/llvm-16 " },
10098)
10199
102100## Toolchain example with a sysroot.
@@ -117,11 +115,7 @@ filegroup(
117115
118116llvm_toolchain (
119117 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 ,
125119 sysroot = {
126120 "linux-x86_64" : "@org_chromium_sysroot_linux_x64//:sysroot" ,
127121 },
0 commit comments