10
10
# Startup options cannot be selected via config.
11
11
startup --host_jvm_args=-Xmx3g
12
12
13
+ common --noenable_bzlmod
14
+
13
15
fetch --color=yes
14
16
run --color=yes
15
17
@@ -61,9 +63,9 @@ test --experimental_ui_max_stdouterr_bytes=11712829 #default 1048576
61
63
# Allow tags to influence execution requirements
62
64
common --experimental_allow_tags_propagation
63
65
66
+ build:linux --copt=-fdebug-types-section
64
67
# Enable position independent code (this is the default on macOS and Windows)
65
68
# (Workaround for https://github.com/bazelbuild/rules_foreign_cc/issues/421)
66
- build:linux --copt=-fdebug-types-section
67
69
build:linux --copt=-fPIC
68
70
build:linux --copt=-Wno-deprecated-declarations
69
71
build:linux --cxxopt=-std=c++20 --host_cxxopt=-std=c++20
@@ -89,6 +91,7 @@ build:clang --action_env=BAZEL_COMPILER=clang
89
91
build:clang --linkopt=-fuse-ld=lld
90
92
build:clang --action_env=CC=clang --host_action_env=CC=clang
91
93
build:clang --action_env=CXX=clang++ --host_action_env=CXX=clang++
94
+ build:clang --incompatible_enable_cc_toolchain_resolution=false
92
95
93
96
# Flags for Clang + PCH
94
97
build:clang-pch --spawn_strategy=local
@@ -99,6 +102,22 @@ build:gcc --linkopt=-fuse-ld=gold --host_linkopt=-fuse-ld=gold
99
102
build:gcc --test_env=HEAPCHECK=
100
103
build:gcc --action_env=BAZEL_COMPILER=gcc
101
104
build:gcc --action_env=CC=gcc --action_env=CXX=g++
105
+ # This is to work around a bug in GCC that makes debug-types-section
106
+ # option not play well with fission:
107
+ # https://gcc.gnu.org/bugzilla/show_bug.cgi?id=110885
108
+ build:gcc --copt=-fno-debug-types-section
109
+ # These trigger errors in multiple places both in Envoy dependecies
110
+ # and in Envoy code itself when using GCC.
111
+ # And in all cases the reports appear to be clear false positives.
112
+ build:gcc --copt=-Wno-error=restrict
113
+ build:gcc --copt=-Wno-error=uninitialized
114
+ build:gcc --cxxopt=-Wno-missing-requires
115
+ # We need this because -Wno-missing-requires options is rather new
116
+ # in GCC, so flags -Wno-missing-requires exists in GCC 12, but does
117
+ # not in GCC 11 and GCC 11 is what is used in docker-gcc
118
+ # configuration currently
119
+ build:gcc --cxxopt=-Wno-unknown-warning
120
+ build:gcc --incompatible_enable_cc_toolchain_resolution=false
102
121
103
122
# Clang-tidy
104
123
# TODO(phlax): enable this, its throwing some errors as well as finding more issues
@@ -146,6 +165,7 @@ build:clang-asan --linkopt=-fsanitize=vptr,function
146
165
147
166
# macOS
148
167
build:macos --cxxopt=-std=c++20 --host_cxxopt=-std=c++20
168
+ build:macos --copt=-Wno-deprecated-declarations
149
169
build:macos --action_env=PATH=/opt/homebrew/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin
150
170
build:macos --host_action_env=PATH=/opt/homebrew/bin:/opt/local/bin:/usr/local/bin:/usr/bin:/bin
151
171
build:macos --define tcmalloc=disabled
@@ -204,6 +224,7 @@ build:libc++ --action_env=BAZEL_LINKLIBS=-l%:libc++.a:-l%:libc++abi.a
204
224
build:libc++ --action_env=BAZEL_LINKOPTS=-lm:-pthread
205
225
build:libc++ --define force_libcpp=enabled
206
226
build:clang-libc++ --config=libc++
227
+ build:clang-libc++ --action_env=ARFLAGS=r
207
228
208
229
build:libc++20 --config=libc++
209
230
# gRPC has a lot of deprecated-enum-enum-conversion warning. Remove once it is addressed
@@ -255,6 +276,7 @@ build:cache-local --remote_cache=grpc://localhost:9092
255
276
256
277
# Remote execution: https://docs.bazel.build/versions/master/remote-execution.html
257
278
build:rbe-toolchain --action_env=BAZEL_DO_NOT_DETECT_CPP_TOOLCHAIN=1
279
+ build:rbe-toolchain --incompatible_enable_cc_toolchain_resolution=false
258
280
259
281
build:rbe-toolchain-clang --config=rbe-toolchain
260
282
build:rbe-toolchain-clang --platforms=@envoy//bazel/rbe/toolchains:rbe_linux_clang_platform
@@ -363,7 +385,7 @@ build:compile-time-options --@envoy//source/extensions/filters/http/kill_request
363
385
364
386
# Docker sandbox
365
387
# NOTE: Update this from https://github.com/envoyproxy/envoy-build-tools/blob/main/toolchains/rbe_toolchains_config.bzl#L8
366
- build:docker-sandbox --experimental_docker_image=envoyproxy/envoy-build-ubuntu:f94a38f62220a2b017878b790b6ea98a0f6c5f9c @sha256:2dd96b6f43c08ccabd5f4747fce5854f5f96af509b32e5cf6493f136e9833649
388
+ build:docker-sandbox --experimental_docker_image=envoyproxy/envoy-build-ubuntu:d2be0c198feda0c607fa33209da01bf737ef373f @sha256:026fb6710a3e55716cc1aba129f613f9834212d2deb4ea875ac9d2c37ca19aa3
367
389
build:docker-sandbox --spawn_strategy=docker
368
390
build:docker-sandbox --strategy=Javac=docker
369
391
build:docker-sandbox --strategy=Closure=docker
@@ -379,6 +401,8 @@ build:docker-clang-libc++ --config=docker-sandbox
379
401
build:docker-clang-libc++ --config=rbe-toolchain-clang-libc++
380
402
381
403
build:docker-gcc --config=docker-sandbox
404
+ build:docker-gcc --config=gcc
405
+
382
406
build:docker-gcc --config=rbe-toolchain-gcc
383
407
384
408
build:docker-asan --config=docker-sandbox
@@ -510,8 +534,8 @@ build:rbe-engflow --remote_executor=grpcs://envoy.cluster.engflow.com
510
534
build:rbe-engflow --bes_backend=grpcs://envoy.cluster.engflow.com/
511
535
build:rbe-engflow --bes_results_url=https://envoy.cluster.engflow.com/invocation/
512
536
build:rbe-engflow --credential_helper=*.engflow.com=%workspace%/bazel/engflow-bazel-credential-helper.sh
513
- build:rbe-engflow --grpc_keepalive_time=30s
514
- build:rbe-engflow --remote_timeout=3600s
537
+ build:rbe-engflow --grpc_keepalive_time=60s
538
+ build:rbe-engflow --grpc_keepalive_timeout=30s
515
539
build:rbe-engflow --bes_timeout=3600s
516
540
build:rbe-engflow --bes_upload_mode=fully_async
517
541
build:rbe-engflow --nolegacy_important_outputs
0 commit comments