File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed
Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -78,9 +78,28 @@ load("@envoy//bazel:repo.bzl", "envoy_repo")
7878
7979envoy_repo ()
8080
81- load ("@envoy//bazel:toolchains.bzl" , "envoy_toolchains" )
81+ # load("@envoy//bazel:toolchains.bzl", "envoy_toolchains")
8282
83- envoy_toolchains ()
83+ # envoy_toolchains()
84+
85+ load ("@envoy_repo//:compiler.bzl" , "LLVM_PATH" )
86+ load ("@envoy_toolshed//repository:utils.bzl" , "arch_alias" )
87+ load ("@toolchains_llvm//toolchain:rules.bzl" , "llvm_toolchain" )
88+
89+ native .register_toolchains ("@envoy//bazel/rbe/toolchains/configs/linux/gcc/config:cc-toolchain" )
90+ arch_alias (
91+ name = "clang_platform" ,
92+ aliases = {
93+ "amd64" : "@envoy//bazel/platforms/rbe:linux_x64" ,
94+ "aarch64" : "@envoy//bazel/platforms/rbe:linux_arm64" ,
95+ },
96+ )
97+ llvm_toolchain (
98+ name = "llvm_toolchain" ,
99+ llvm_version = "18.1.8" ,
100+ cxx_standard = {"" : "c++20" },
101+ toolchain_roots = {"" : LLVM_PATH } if LLVM_PATH else {},
102+ )
84103
85104load ("@llvm_toolchain//:toolchains.bzl" , "llvm_register_toolchains" )
86105
You can’t perform that action at this time.
0 commit comments