-
Notifications
You must be signed in to change notification settings - Fork 29
/
.bazelrc
68 lines (53 loc) · 2.49 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.
# ========================================
# 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
# Heap profiler is supported only with gperf tcmalloc, not google tcmalloc.
# See: https://github.com/istio/istio/issues/28233
build --define tcmalloc=gperftools
# 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
# Link pthread for flatbuffers
build --host_linkopt=-pthread
# CI sanitizer configuration
#
build:clang-asan-ci --config=clang-asan
build:clang-asan-ci --action_env=ENVOY_UBSAN_VPTR=1
build:clang-asan-ci --copt=-fsanitize=vptr,function
build:clang-asan-ci --linkopt=-fsanitize=vptr,function
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-asan-ci --linkopt=-l:libclang_rt.ubsan_standalone.a
build:clang-asan-ci --linkopt=-l:libclang_rt.ubsan_standalone_cxx.a
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
import %workspace%/maistra/bazelrc