-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
29 lines (23 loc) · 828 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
# Enable Bzlmod.
common --enable_bzlmod
common --registry=https://raw.githubusercontent.com/world-federation-of-advertisers/bazel-registry/main
common --registry=https://bcr.bazel.build
# Use Clang as C/C++ compiler.
build --repo_env='CC=clang'
# Allow C++17 language features.
build --repo_env='BAZEL_CXXOPTS=-std=c++17'
# Use JDK 11.
build --java_runtime_version=remotejdk_17
# Target Java language version 11.
build --java_language_version=11
# Build with address sanitizer (ASAN).
build:asan --strip=never
build:asan --copt -fsanitize=address
build:asan --copt -DADDRESS_SANITIZER
build:asan --copt -O1
build:asan --copt -g
build:asan --copt -fno-omit-frame-pointer
build:asan --linkopt -fsanitize=address
# Configuration for continuous integration (CI).
common:ci --lockfile_mode=error
build:ci --compilation_mode=opt