-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy path.bazelrc
42 lines (35 loc) · 1.56 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
build --announce_rc
build --verbose_failures
build --color=yes
build --config=clang
build --config=java
build:cpp --client_env=BAZEL_CXXOPTS=-std=c++20
build:cpp --cxxopt=-std=c++20
# Don't use opentelemetry-cpp’s copy of Abseil
# https://github.com/open-telemetry/opentelemetry-cpp/pull/1172
# https://github.com/open-telemetry/opentelemetry-cpp/blob/main/examples/otlp/README.md#additional-notes-regarding-abseil-library
# https://github.com/open-telemetry/opentelemetry-cpp/issues/1042
build:cpp --@io_opentelemetry_cpp//api:with_abseil=true
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 --cxxopt=-D_SCP_CORE_SOCAT_FORWARDER_NON_PRIVILEGED=1
test --test_output=all
build:kythe --keep_going
build:kythe --experimental_extra_action_top_level_only
build:kythe --experimental_action_listener=@kythe_release//:extract_kzip_cxx
build:kythe --experimental_action_listener=@kythe_release//:extract_kzip_java
build:kythe --experimental_action_listener=@kythe_release//:extract_kzip_protobuf