-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bazelrc
54 lines (42 loc) · 1.99 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
# To debug bazel options, uncomment next line.
# common --announce_rc
try-import %workspace%/.bazelrc.user
common --consistent_labels
common --enable_bzlmod
common --noincompatible_enable_cc_toolchain_resolution
common --incompatible_disallow_empty_glob
common --nolegacy_external_runfiles
common --features=layering_check
# Define the Apple OS
common --apple_platform_type=macos
# Allow platform specific control and add the missing 'CoreFoundation' lib.
common --enable_platform_specific_config
common:macos --features=-supports_dynamic_linker --linkopt=-framework --linkopt=CoreFoundation --host_linkopt=-framework --host_linkopt=CoreFoundation
# Define absl=1 to tell googletest to use absl for backtrace.
common --define absl=1
common --cxxopt=-std=c++20 --host_cxxopt=-std=c++20 --cxxopt=-Werror
test --test_output=errors
# Disable: error: unused function 'CodepointSkipBackwards' [-Werror,-Wunused-function]
common --per_file_copt=external/utf8_range/utf8_validity.cc@-Wno-unused-function
# Disable deprecation warnings in the protobuf library itself.
common --per_file_copt=src/google/protobuf/.*@-w
common --host_per_file_copt=src/google/protobuf/.*@-w
common --copt=-fdiagnostics-color=always
# Custom --config=asan mode:
common:asan --copt -fsanitize=address,undefined
common:asan --linkopt -fsanitize=address,undefined
common:asan --copt -fno-sanitize=vptr
common:asan --linkopt -fno-sanitize=vptr
common:asan --linkopt -ldl
common:asan --define tcmalloc=disabled
common:asan --define signal_trace=disabled
common:asan --build_tag_filters=-no_san # skip san targets
common:asan --test_tag_filters=-no_san # skip san targets
common:asan --define san=true # skip san targets
common:asan --features=asan # https://github.com/bazelbuild/bazel/issues/6932
common:clang --incompatible_enable_cc_toolchain_resolution
common:clang --cxxopt=-gmlt
common:clang --host_cxxopt=-gmlt
common:clang --linkopt=-fuse-ld=lld
common:clang --host_linkopt=-fuse-ld=lld
common:cpp23 --cxxopt=-std=c++23 --host_cxxopt=-std=c++23