2020-01-06 05:32:37 +03:00
|
|
|
# bazel configurations for running tests under sanitizers.
|
|
|
|
# Based on https://github.com/bazelment/trunk/blob/master/tools/bazel.rc
|
|
|
|
|
2020-07-08 21:15:52 +03:00
|
|
|
# Needed by gRPC to build on some platforms.
|
|
|
|
build --copt -DGRPC_BAZEL_BUILD
|
|
|
|
|
2020-01-06 05:32:37 +03:00
|
|
|
# --config=asan : Address Sanitizer.
|
|
|
|
common:asan --copt -fsanitize=address
|
|
|
|
common:asan --copt -DADDRESS_SANITIZER
|
|
|
|
common:asan --linkopt -fsanitize=address
|
|
|
|
common:asan --cc_output_directory_tag=asan
|
2020-03-19 07:33:33 +03:00
|
|
|
|
|
|
|
# --config=tsan : Thread Sanitizer.
|
|
|
|
common:tsan --copt -fsanitize=thread
|
|
|
|
common:tsan --copt -DTHREAD_SANITIZER
|
|
|
|
common:tsan --linkopt -fsanitize=thread
|
|
|
|
common:tsan --cc_output_directory_tag=tsan
|