-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.bazelrc
69 lines (58 loc) · 2.54 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
build --action_env=ASAN_OPTIONS=halt_on_error=true
build --repo_env=CC=gcc-11
build --repo_env=CXX=g++-11
build --cxxopt='-std=c++20'
# host_cxxopt is used for building upb. Must be C++14 or later.
# It might seem to make sense to use the same flags for both host_cxxopt
# and cxx_opt, but it turns out that c++14 mode builds slightly faster.
build --host_cxxopt='-std=c++14'
# This flag is needed to build upb(micro protobuf) in C++20 mode.
# If we build in C++14 or C++17 mode its not needed, but it still suppresses
# hundreds of distracting warnings.
build --cxxopt='-Wno-deprecated-enum-enum-conversion'
build --host_cxxopt='-Wno-deprecated-enum-enum-conversion'
# Statically link libstdc++ and libgcc.
build --action_env=BAZEL_LINKLIBS=-l%:libstdc++.a:-lm
build --action_env=BAZEL_LINKOPTS=-static-libgcc
build:ubsan --linkopt=-fsanitize=undefined
build:ubsan --copt=-fsanitize=undefined
build:ubsan --copt=-DUNDEFINED_SANITIZER
build:ubsan --copt=-O1
build:ubsan --copt=-g
build:ubsan --copt=-fno-omit-frame-pointer
build:ubsan --strip=never
build:msan --linkopt=-fsanitize=memory
build:msan --copt=-fsanitize=memory
build:msan --copt=-DMEMORY_SANITIZER
build:msan --copt=-O1
build:msan --copt=-g
build:msan --copt=-fno-omit-frame-pointer
build:msan --strip=never
build:asan --linkopt=-fsanitize=address
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 --strip=never
build:tsan --linkopt=-fsanitize=thread
build:tsan --copt=-fsanitize=thread
build:tsan --copt=-fno-omit-frame-pointer
build:tsan --copt=-DTHREAD_SANITIZER
build:tsan --copt=-DGRPC_TSAN
build:tsan --copt=-DGPR_NO_DIRECT_SYSCALLS
build:tsan --copt=-g
build:tsan --strip=never
# The flags "report_atomic_races=0 history_size=7" are needed to avoid reporting false positives in abseil code.
# See https://github.com/google/sanitizers/issues/953
# The flag report_thread_leaks=0 is for false positives in grpc global timer and default executor threads.
# see https://github.com/google/sanitizers/wiki/ThreadSanitizerFlags for more options
build:tsan --test_env=TSAN_OPTIONS="report_atomic_races=0 history_size=7 report_thread_leaks=0"
build:tsan --action_env=TSAN_OPTIONS=suppressions=test/core/util/tsan_suppressions.txt:halt_on_error=1:second_deadlock_stack=1
build:basicprof --strip=never
build:basicprof --copt=-DNDEBUG
build:basicprof --copt=-O2
build:basicprof --copt=-DGRPC_BASIC_PROFILER
build:basicprof --copt=-DGRPC_TIMERS_RDTSC
build:basicprof --copt=-pg
build:basicprof --linkopt=-pg