Protocol Buffers - Google's data interchange format (grpc依赖)
https://developers.google.com/protocol-buffers/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
2.0 KiB
39 lines
2.0 KiB
# temporary fix for https://github.com/bazelbuild/bazel/issues/12905 on macOS |
|
build --features=-debug_prefix_map_pwd_is_dot |
|
|
|
# Use our custom-configured c++ toolchain. |
|
|
|
build:m32 --copt=-m32 --linkopt=-m32 |
|
build:asan --copt=-fsanitize=address --linkopt=-fsanitize=address |
|
build:valgrind --run_under='valgrind --leak-check=full --error-exitcode=1' |
|
|
|
build:ubsan --copt=-fsanitize=undefined --linkopt=-fsanitize=undefined --action_env=UBSAN_OPTIONS=halt_on_error=1:print_stacktrace=1 |
|
# Workaround for the fact that Bazel links with $CC, not $CXX |
|
# https://github.com/bazelbuild/bazel/issues/11122#issuecomment-613746748 |
|
build:ubsan --copt=-fno-sanitize=function --copt=-fno-sanitize=vptr |
|
# Workaround for https://bugs.llvm.org/show_bug.cgi?id=16404 |
|
build:ubsan --linkopt=--rtlib=compiler-rt --linkopt=-lunwind |
|
|
|
build:Werror --copt=-Werror |
|
build:Werror --per_file_copt=json/parser@-Wno-error |
|
build:Werror --per_file_copt=com_google_protobuf@-Wno-error |
|
|
|
# GCC's -fanalyzer, a deeper static analysis than normal warnings. |
|
build:analyzer --copt=-fanalyzer --copt=-Werror |
|
build:analyzer --per_file_copt=json/parser@-fno-analyzer |
|
build:analyzer --per_file_copt=com_google_protobuf@-fno-analyzer |
|
build:analyzer --per_file_copt=com_github_google_benchmark@-fno-analyzer |
|
|
|
# --config=asan-libfuzzer |
|
build:asan-libfuzzer --action_env=CC=clang |
|
build:asan-libfuzzer --action_env=CXX=clang++ |
|
build:asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine=@rules_fuzzing//fuzzing/engines:libfuzzer |
|
build:asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine_instrumentation=libfuzzer |
|
build:asan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine_sanitizer=asan |
|
|
|
# --config=msan-libfuzzer |
|
build:msan-libfuzzer --action_env=CC=clang |
|
build:msan-libfuzzer --action_env=CXX=clang++ |
|
build:msan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine=@rules_fuzzing//fuzzing/engines:libfuzzer |
|
build:msan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine_instrumentation=libfuzzer |
|
build:msan-libfuzzer --@rules_fuzzing//fuzzing:cc_engine_sanitizer=msan
|
|
|