Skip to content

Commit 1b96329

Browse files
build: Downgrade LLVM 17.0.6 -> 16.0.0
1 parent a332c53 commit 1b96329

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

settings.bzl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# Keep LLVM versions list in sync with setup_llvm.bzl
22
ASAN_LINKOPTS = [
3-
"-Wl,-rpath,@loader_path/../../../../../../external/llvm_toolchain_llvm/lib/clang/17.0.6/lib/darwin",
4-
"-Wl,-rpath,@loader_path/../../../../../../external/llvm_toolchain_llvm/lib/clang/17.0.6/lib/linux",
5-
]
3+
"-Wl,-rpath,@loader_path/../../../../../../external/llvm_toolchain_llvm/lib/clang/16.0.0/lib/darwin",
4+
"-Wl,-rpath,@loader_path/../../../../../../external/llvm_toolchain_llvm/lib/clang/16.0.0/lib/linux",
5+
]

setup_llvm.bzl

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,19 @@ load("@toolchains_llvm//toolchain:rules.bzl", grailbio_llvm_toolchain = "llvm_to
33
def setup_llvm_toolchain(name):
44
# NOTE: The ASan build uses paths which involve the version.
55
# Keep the version list in sync with settings.bzl
6+
# At the time of bumping this, the latest version is 17.0.6,
7+
# but we use 16.0.0 because:
8+
# - Versions later than 16.0.0 are built on Ubuntu 22.04 or newer,
9+
# whereas 16.0.0 is built on Ubuntu 18.04. The newer binaries require
10+
# a newer glibc version which isn't currently present on Buildkite machines.
11+
# - Our release pipeline uses Ubuntu 18.04 so that the binaries work on
12+
# older Debian and Ubuntu versions. Using newer toolchain binaries would
13+
# hence not work in our release pipeline.
614
mapping = {
7-
"linux-aarch64": {"version": "17.0.6", "triple": "aarch64-linux-gnu", "sha256": "6dd62762285326f223f40b8e4f2864b5c372de3f7de0731cb7cd55ca5287b75a"},
8-
"linux-x86_64": {"version": "17.0.6", "triple": "x86_64-linux-gnu-ubuntu-22.04", "sha256": "884ee67d647d77e58740c1e645649e29ae9e8a6fe87c1376be0f3a30f3cc9ab3"},
9-
"darwin-aarch64": {"version": "17.0.6", "triple": "arm64-apple-darwin22.0", "sha256": "1264eb3c2a4a6d5e9354c3e5dc5cb6c6481e678f6456f36d2e0e566e9400fcad"},
10-
"darwin-arm64": {"version": "17.0.6", "triple": "arm64-apple-darwin22.0", "sha256": "1264eb3c2a4a6d5e9354c3e5dc5cb6c6481e678f6456f36d2e0e566e9400fcad"},
15+
"linux-aarch64": {"version": "16.0.0", "triple": "aarch64-linux-gnu", "sha256": "b750ba3120e6153fc5b316092f19b52cf3eb64e19e5f44bd1b962cb54a20cf0a"},
16+
"linux-x86_64": {"version": "16.0.0", "triple": "x86_64-linux-gnu-ubuntu-18.04", "sha256": "2b8a69798e8dddeb57a186ecac217a35ea45607cb2b3cf30014431cff4340ad1"},
17+
"darwin-aarch64": {"version": "16.0.0", "triple": "arm64-apple-darwin22.0", "sha256": "2041587b90626a4a87f0de14a5842c14c6c3374f42c8ed12726ef017416409d9"},
18+
"darwin-arm64": {"version": "16.0.0", "triple": "arm64-apple-darwin22.0", "sha256": "2041587b90626a4a87f0de14a5842c14c6c3374f42c8ed12726ef017416409d9"},
1119
}
1220
llvm_versions, sha256, strip_prefix, urls = {}, {}, {}, {}
1321
for (k, v) in mapping.items():

0 commit comments

Comments
 (0)