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