Skip to content

Commit a0820ab

Browse files
committed
fix
1 parent af244af commit a0820ab

File tree

3 files changed

+28
-7
lines changed

3 files changed

+28
-7
lines changed

.bazelrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ build:remote --remote_timeout=7200
1414
# ========================================
1515

1616
# Enable libc++ and C++20 by default.
17-
# build --repo_env=BAZEL_LLVM_PATH=/usr/lib/llvm
17+
build --repo_env=BAZEL_LLVM_PATH=/usr/lib/llvm
1818
build:linux --config=clang
1919

2020
# put /usr/local/bin before /usr/bin to avoid picking up wrong python3.6 when building envoy.tls.key_providers.cryptomb

WORKSPACE

Lines changed: 24 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
2222
# 1. Determine SHA256 `wget https://github.com/envoyproxy/envoy/archive/$COMMIT.tar.gz && sha256sum $COMMIT.tar.gz`
2323
# 2. Update .bazelversion, envoy.bazelrc and .bazelrc if needed.
2424
#
25-
# Commit date: 2025-12-03
26-
ENVOY_SHA = "1caf0d7396786bac7f4fcf7b9d291ed761191b68"
25+
# Commit date: 2025-12-05
26+
ENVOY_SHA = "df7ddf53f997efd9e080f5940bd996ee9827405b"
2727

28-
ENVOY_SHA256 = "10df99872f4f4c24c456970fdbedae1a25ecf2de4d4db57a34cd271f46fc7ac0"
28+
ENVOY_SHA256 = "481954044392c767e58b5971f3f0e53baa1707b62f20fca63794fefd279b9c90"
2929

3030
ENVOY_ORG = "envoyproxy"
3131

@@ -78,11 +78,29 @@ load("@envoy//bazel:repo.bzl", "envoy_repo")
7878

7979
envoy_repo()
8080

81-
load("@envoy//bazel:toolchains.bzl", "envoy_toolchains")
8281

83-
envoy_toolchains()
82+
# this's workaround for use local LLVM toolchain
83+
load("@envoy_repo//:compiler.bzl", "LLVM_PATH")
84+
load("@envoy_toolshed//repository:utils.bzl", "arch_alias")
85+
load("@toolchains_llvm//toolchain:rules.bzl", "llvm_toolchain")
86+
87+
register_toolchains("@envoy//bazel/rbe/toolchains/configs/linux/gcc/config:cc-toolchain")
88+
89+
arch_alias(
90+
name = "clang_platform",
91+
aliases = {
92+
"amd64": "@envoy//bazel/platforms/rbe:linux_x64",
93+
"aarch64": "@envoy//bazel/platforms/rbe:linux_arm64",
94+
},
95+
)
96+
97+
llvm_toolchain(
98+
name = "llvm_toolchain",
99+
cxx_standard = {"": "c++20"},
100+
llvm_version = "18.1.8",
101+
toolchain_roots = {"": LLVM_PATH} if LLVM_PATH else {},
102+
)
84103

85104
load("@llvm_toolchain//:toolchains.bzl", "llvm_register_toolchains")
86105

87106
llvm_register_toolchains()
88-

envoy.bazelrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -391,6 +391,9 @@ build:remote --strategy=Javac=remote,sandboxed,local
391391
build:remote --strategy=Closure=remote,sandboxed,local
392392
build:remote --strategy=Genrule=remote,sandboxed,local
393393
build:remote --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
394+
# This flag may be more generally useful - it sets foreign_cc builds -jauto.
395+
# It is only set here because if it were the default it risks OOMing on local builds.
396+
build:remote --@envoy//bazel/foreign_cc:parallel_builds
394397

395398
## RBE (Engflow Envoy)
396399

0 commit comments

Comments
 (0)