summaryrefslogtreecommitdiffstats
path: root/src/jaegertracing/opentelemetry-cpp/.bazelrc
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-21 11:54:28 +0000
commite6918187568dbd01842d8d1d2c808ce16a894239 (patch)
tree64f88b554b444a49f656b6c656111a145cbbaa28 /src/jaegertracing/opentelemetry-cpp/.bazelrc
parentInitial commit. (diff)
downloadceph-e6918187568dbd01842d8d1d2c808ce16a894239.tar.xz
ceph-e6918187568dbd01842d8d1d2c808ce16a894239.zip
Adding upstream version 18.2.2.upstream/18.2.2
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/jaegertracing/opentelemetry-cpp/.bazelrc')
-rw-r--r--src/jaegertracing/opentelemetry-cpp/.bazelrc25
1 files changed, 25 insertions, 0 deletions
diff --git a/src/jaegertracing/opentelemetry-cpp/.bazelrc b/src/jaegertracing/opentelemetry-cpp/.bazelrc
new file mode 100644
index 000000000..7127e8fc0
--- /dev/null
+++ b/src/jaegertracing/opentelemetry-cpp/.bazelrc
@@ -0,0 +1,25 @@
+# bazel configurations for running tests under sanitizers.
+# Based on https://github.com/bazelment/trunk/blob/master/tools/bazel.rc
+
+# Needed by gRPC to build on some platforms.
+build --copt -DGRPC_BAZEL_BUILD
+
+# --config=asan : Address Sanitizer.
+common:asan --copt -DADDRESS_SANITIZER
+common:asan --copt -fsanitize=address,bool,float-cast-overflow,integer-divide-by-zero,null,return,returns-nonnull-attribute,shift-exponent,signed-integer-overflow,unreachable,vla-bound
+common:asan --copt -fsanitize-address-use-after-scope
+common:asan --copt -fno-sanitize-recover=all
+common:asan --linkopt -fsanitize=address,bool,float-cast-overflow,integer-divide-by-zero,null,return,returns-nonnull-attribute,shift-exponent,signed-integer-overflow,unreachable,vla-bound
+common:asan --linkopt -fsanitize-address-use-after-scope
+common:asan --linkopt -fno-sanitize-recover=all
+common:asan --cc_output_directory_tag=asan
+
+# --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
+# This is needed to address false positive problem with abseil.The same setting as gRPC
+# https://github.com/google/sanitizers/issues/953
+common:tsan --test_env=TSAN_OPTIONS=report_atomic_races=0
+