File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ common --repo_env=CC=clang
1313# On Linux, use a hermetic toolchain and sysroot shared between local dev setups and CI.
1414# Such a toolchain isn't easily available on macOS or Windows.
1515common:linux --repo_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
16+ # Register hermetic LLVM toolchains for both x86_64 and arm64
1617common:linux --extra_toolchains=@llvm_toolchain//:cc-toolchain-x86_64-linux
18+ common:linux --extra_toolchains=@llvm_toolchain//:cc-toolchain-aarch64-linux
1719# Silence protobuf compilation warnings.
1820build --copt=-Wno-unused-function
1921build --copt=-Wno-unknown-warning-option
Original file line number Diff line number Diff line change 4747# bazel_args: "//launcher/android:jazzer_android"
4848 - os : ubuntu-22.04
4949 arch : " linux"
50+ - os : ubuntu-22.04-arm
51+ arch : " linux-arm64"
5052 - os : macos-14
5153 arch : " macos-arm64"
5254 bazel_args : " --xcode_version_config=//.github:host_xcodes"
Original file line number Diff line number Diff line change @@ -253,7 +253,24 @@ filegroup(
253253)
254254""" ,
255255 sha256 = "84656a6df544ecef62169cfe3ab6e41bb4346a62d3ba2a045dc5a0a2ecea94a3" ,
256- urls = ["https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/2202c161310ffde63729f29d27fe7bb24a0bc540/debian_stretch_amd64_sysroot.tar.xz" ],
256+ urls = [
257+ "https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/2202c161310ffde63729f29d27fe7bb24a0bc540/debian_stretch_amd64_sysroot.tar.xz" ,
258+ ],
259+ )
260+
261+ http_archive (
262+ name = "org_chromium_sysroot_linux_aarch64" ,
263+ build_file_content = """
264+ filegroup(
265+ name = "sysroot",
266+ srcs = glob(["*/**"]),
267+ visibility = ["//visibility:public"],
268+ )
269+ """ ,
270+ sha256 = "e39b700d8858d18868544c8c84922f6adfa8419f3f42471b92024ba38eff7aca" ,
271+ urls = [
272+ "https://commondatastorage.googleapis.com/chrome-linux-sysroot/toolchain/2202c161310ffde63729f29d27fe7bb24a0bc540/debian_stretch_arm64_sysroot.tar.xz" ,
273+ ],
257274)
258275
259276http_file (
@@ -415,6 +432,7 @@ llvm.toolchain(
415432 # https://github.com/grailbio/bazel-toolchain/issues/234
416433 # https://github.com/grailbio/bazel-toolchain/pull/235
417434 "linux-x86_64" : "@@_main~_repo_rules~org_chromium_sysroot_linux_x64//:sysroot" ,
435+ "linux-aarch64" : "@@_main~_repo_rules~org_chromium_sysroot_linux_aarch64//:sysroot" ,
418436 },
419437)
420438use_repo (llvm , "llvm_toolchain" )
You can’t perform that action at this time.
0 commit comments