-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bazelrc
29 lines (24 loc) · 855 Bytes
/
.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
build --announce_rc
build --verbose_failures
build --color=yes
build --config=clang
build --config=java
build:cpp --client_env=BAZEL_CXXOPTS=-std=c++17
build:cpp --cxxopt=-std=c++17
build:clang --config=cpp
build:clang --cxxopt=-fbracket-depth=512
# Force bazel to use specific JDK, otherwise JDK may not be predictable
build:java --java_language_version=11
build:java --java_runtime_version=remotejdk_11
# Address sanitizer
build:asan --action_env=CONTROL_PLANE_SHARED_ASAN=1
build:asan --strip=never
build:asan --copt -fsanitize=address
build:asan --copt -DADDRESS_SANITIZER
build:asan --copt -g
build:asan --copt -fno-omit-frame-pointer
build:asan --linkopt -fsanitize=address
# Run sudo apt-get install lld in case of error
build:asan --linkopt=-fuse-ld=lld
build:asan --action_env=ASAN_OPTIONS=detect_leaks=1:color=always
test --test_output=all