This repository has been archived by the owner on Dec 26, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
/
.bazelrc
53 lines (44 loc) · 1.62 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
build --copt -W
build --copt -Wall
build --copt -Wextra
build --output_filter='^//((?!external:).)*$'
coverage -s
coverage --experimental_cc_coverage
coverage --combined_report=lcov
coverage --coverage_report_generator=@bazel_tools//tools/test/CoverageOutputGenerator/java/com/google/devtools/coverageoutputgenerator:Main
coverage --instrumentation_filter="-/tests[/:]"
test --copt='-ggdb3'
# enforce using python2
# see also: https://github.com/bazelbuild/rules_docker#known-issues
build --host_force_python=PY2
test --host_force_python=PY2
run --host_force_python=PY2
# --config asan: Address sanitizer
build:asan --strip=never
build:asan --copt -DADDRESS_SANITIZER
build:asan --copt -fsanitize=address
build:asan --copt -fno-omit-frame-pointer
build:asan --linkopt -fsanitize=address
# --config tsan: ThreadSanitizer
build:tsan --strip=never
build:tsan --copt -DTHREAD_SANITIZER
build:tsan --copt -DDYNAMIC_ANNOTATIONS_ENABLED=1
build:tsan --copt -DDYNAMIC_ANNOTATIONS_EXTERNAL_IMPL=1
build:tsan --copt -fsanitize=thread
build:tsan --copt -fno-omit-frame-pointer
build:tsan --linkopt -fsanitize=thread
build:tsan --linkopt -ltsan
# --config msan: Memory sanitizer
build:msan --strip=never
build:msan --copt -DADDRESS_SANITIZER
build:msan --copt -fsanitize=memory
build:msan --copt -fno-omit-frame-pointer
build:msan --linkopt -fsanitize=memory
# --config ubsan: Undefined Behavior Sanitizer
build:ubsan --strip=never
build:ubsan --copt -fsanitize=undefined
build:ubsan --copt -fno-omit-frame-pointer
build:ubsan --linkopt -fsanitize=undefined
build:ubsan --linkopt -lubsan
import %workspace%/hooks/toolchains.rc
try-import %workspace%/user.bazelrc