-
Notifications
You must be signed in to change notification settings - Fork 15
/
.bazelrc
141 lines (118 loc) · 5.43 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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
build --announce_rc
build --verbose_failures
build --config=clang
build --compilation_mode=opt
build --output_filter='^//((?!(third_party):).)*$'`
build --color=yes
# Required to import opentelemetry with abseil
build --@io_opentelemetry_cpp//api:with_abseil
# Required to build OpenTelemtry with logs API.
# TODO(b/287675870): Delete the following when the feature is no longer experimental.
build --copt=-DENABLE_LOGS_PREVIEW
# Avoid linking to ICU shared libs for googleurl
build --@com_google_googleurl//build_config:system_icu=0
build:clang --cxxopt=-fbracket-depth=512
build:clang --client_env=CC=clang
build:clang --cxxopt=-std=c++17
build:clang --host_cxxopt=-std=c++17
build:clang --client_env=BAZEL_CXXOPTS=-std=c++17
build:clang --linkopt=-rdynamic
test --test_verbose_timeout_warnings
build:instance_local --//:instance=local
build:instance_local --@google_privacysandbox_servers_common//:instance=local
build:instance_gcp --//:instance=gcp
build:instance_gcp --@google_privacysandbox_servers_common//:instance=gcp
build:instance_aws --//:instance=aws
build:instance_aws --@google_privacysandbox_servers_common//:instance=aws
build:platform_local --//:platform=local
build:platform_local --@google_privacysandbox_servers_common//:platform=local
build:platform_local --@control_plane_shared//cc/public/cpio/interface:platform=local
build:platform_aws --//:platform=aws
build:platform_aws --@google_privacysandbox_servers_common//:platform=aws
build:platform_aws --@control_plane_shared//cc/public/cpio/interface:platform=aws
build:platform_gcp --//:platform=gcp
build:platform_gcp --@google_privacysandbox_servers_common//:platform=gcp
build:platform_gcp --@control_plane_shared//cc/public/cpio/interface:platform=gcp
build:local_aws --config=instance_local
build:local_aws --config=platform_aws
build:local_gcp --config=instance_local
build:local_gcp --config=platform_gcp
build:gcp_gcp --config=instance_gcp
build:gcp_gcp --config=platform_gcp
build:local_local --config=instance_local
build:local_local --config=platform_local
build:aws_aws --config=instance_aws
build:aws_aws --config=platform_aws
# Address sanitizer, set action_env to segregate cache entries
build:asan --action_env=PRIVACY_SANDBOX_SERVERS_ASAN=1
build:asan --strip=never
build:asan --compilation_mode=dbg
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
build:asan --linkopt=-fuse-ld=lld
build:asan --action_env=ASAN_OPTIONS=detect_leaks=1:color=always
# Memory sanitizer, set action_env to segregate cache entries
build:msan --action_env=PRIVACY_SANDBOX_SERVERS_MSAN=1
build:msan --strip=never
build:msan --copt=-fsanitize=memory
build:msan --copt=-DMEMORY_SANITIZER
build:msan --copt=-g
build:msan --copt=-fno-omit-frame-pointer
build:msan --linkopt=-fsanitize=memory
# Undefined Behavior sanitizer, set action_env to segregate cache entries
build:ubsan --action_env=PRIVACY_SANDBOX_SERVERS_UBSAN=1
build:ubsan --strip=never
build:ubsan --copt=-fsanitize=undefined
build:ubsan --copt=-DUNDEFINED_BEHAVIOR_SANITIZER
build:ubsan --copt=-g
build:ubsan --copt=-fno-omit-frame-pointer
build:ubsan --linkopt=-fsanitize=undefined
build:ubsan --linkopt=-lubsan
# Thread sanitizer, set action_env to segregate cache entries
build:tsan --action_env=PRIVACY_SANDBOX_SERVERS_TSAN=1
build:tsan --strip=never
build:tsan --copt=-fsanitize=thread
build:tsan --copt=-fno-omit-frame-pointer
build:tsan --copt=-DGPR_NO_DIRECT_SYSCALLS
build:tsan --copt=-DGRPC_TSAN
build:tsan --copt=-g
build:tsan --linkopt=-fsanitize=thread
# This is needed to address false positive problem with abseil.
# https://github.com/google/sanitizers/issues/953
build:tsan --test_env=TSAN_OPTIONS=report_atomic_races=0
test:coretests --test_tag_filters=-flaky
build:small-tests --action_env=PRIVACY_SANDBOX_SERVERS_SMALL_TESTS=1
build:small-tests --compilation_mode=dbg
test:small-tests --build_tests_only
test:small-tests --test_size_filters=-large,-enormous
test:small-tests --test_tag_filters=-requires-network
test:small-tests --runs_per_test=20
test:small-tests --flaky_test_attempts=2
test:small-tests --runs_per_test_detects_flakes
test:small-tests --test_summary=detailed
build:all-tests --action_env=PRIVACY_SANDBOX_SERVERS_ALL_TESTS=1
build:all-tests --compilation_mode=opt
test:all-tests --build_tests_only
test:all-tests --test_summary=detailed
# clang_coverage -- the set of args to configure C++ code coverage in bazel with clang
build:clang_coverage --compilation_mode=opt
build:clang_coverage --combined_report=lcov
build:clang_coverage --nocache_test_results
build:clang_coverage --action_env=GCOV=/usr/bin/llvm-profdata
build:clang_coverage --action_env=BAZEL_USE_LLVM_NATIVE_COVERAGE=1
build:clang_coverage --action_env=BAZEL_LLVM_COV=/usr/bin/llvm-cov
build:clang_coverage --strategy=TestRunner=sandboxed,local
build:clang_coverage --strategy=CoverageReport=sandboxed,local
build:clang_coverage --experimental_scale_timeouts=1.5
build:clang_coverage --coverage_support=@//tools/coverage:coverage_support
build:clang_coverage --test_env=CC_CODE_COVERAGE_SCRIPT=tools/coverage/collect_cc_coverage.sh
coverage --config=coverage
coverage --build_tests_only
build:coverage --config=clang_coverage
build:coverage --action_env=PRIVACY_SANDBOX_SERVERS_BUILD_CONFIG_COVERAGE=1
build:coverage --test_tag_filters=-nocoverage,small
build:coverage --instrumentation_filter="/services[/:],/tools/secure_invoke/payload_generator[/:]"