-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy path.bazelrc
More file actions
23 lines (21 loc) · 849 Bytes
/
.bazelrc
File metadata and controls
23 lines (21 loc) · 849 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Common build configs that can be used across repositories.
#
# Include this file in another .bazelrc with a line like:
# try-import submodules/dev-tools/.bazelrc
# Print failed test logs to the console by default.
test --test_output=errors
# Define an https://github.com/google/sanitizers/wiki/AddressSanitizer config
# to catch common memory errors like use-after-free.
# See https://stackoverflow.com/a/57733619.
#
# Sample use: bazel test --config=asan //my_package:my_test
#
# As of 2020/02/20, this has been tested in multiple GitHub Workflows
# using 'ubuntu-20.04' which uses 'gcc' as the default C++ compiler.
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