-
Notifications
You must be signed in to change notification settings - Fork 1.1k
/
.bazelrc
68 lines (52 loc) · 2.41 KB
/
.bazelrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# =====================================================================
# Envoy specific Bazel build/test options.
# =====================================================================
# Keep envoy.bazelrc up-to-date by run:
# curl -sSL https://raw.githubusercontent.com/envoyproxy/envoy/master/.bazelrc > envoy.bazelrc
import %workspace%/envoy.bazelrc
# Overrides workspace_status_command
build --workspace_status_command=bazel/bazel_get_workspace_status
build:remote --remote_timeout=7200
# ========================================
# Istio specific Bazel build/test options.
# ========================================
# Enable libc++ and C++20 by default.
build:linux --config=libc++20
# Need for CI image to pickup docker-credential-gcloud, PATH is fixed in rbe-toolchain-* configs.
build:remote-ci --action_env=PATH=/usr/local/google-cloud-sdk/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt/llvm/bin
# Enable path normalization by default.
# See: https://github.com/envoyproxy/envoy/pull/6519
build --define path_normalization_by_default=true
build:macos --define tcmalloc=disabled
# Build with embedded V8-based WebAssembly runtime.
build --define wasm=v8
# Build Proxy-WASM plugins as native extensions.
build --copt -DNULL_PLUGIN
# Release builds without debug symbols.
build:release -c opt
build:release --strip=always
# Release builds with debug symbols
build:release-symbol -c opt
# Debug builds
build:debug -c dbg
# Add compile option for all C++ files
# TODO(kuat) re-enable after fixing upstream dd/tracing-lib.
# build --cxxopt -Wnon-virtual-dtor
build --cxxopt -Wformat
build --cxxopt -Wformat-security
build:clang --host_action_env=CC=
build:clang --host_action_env=CXX=
# CI sanitizer configuration
#
build:clang-asan-ci --config=clang-asan
build:clang-asan-ci --linkopt='-L/usr/lib/llvm/lib/x86_64-unknown-linux-gnu'
build:clang-asan-ci --linkopt='-Wl,-rpath,/usr/lib/llvm/lib/x86_64-unknown-linux-gnu'
build:clang-asan-ci --linkopt='-L/usr/lib/llvm/lib/clang/14.0.0/lib/x86_64-unknown-linux-gnu'
build:clang-tsan-ci --config=clang-tsan
build:clang-tsan-ci --linkopt=-L/opt/libcxx_tsan/lib
build:clang-tsan-ci --linkopt=-Wl,-rpath,/opt/libcxx_tsan/lib
# get from https://github.com/Homebrew/homebrew-core/blob/master/Formula/e/envoy.rb
build:macos --cxxopt=-Wno-range-loop-analysis
build:macos --host_cxxopt=-Wno-range-loop-analysis
build:macos --cxxopt=-Wno-deprecated-declarations
build:macos --host_cxxopt=-Wno-deprecated-declarations