30 lines
1.1 KiB
Diff
30 lines
1.1 KiB
Diff
From: Michael Froman <mfroman@mozilla.com>
|
|
Date: Tue, 7 Jan 2025 15:39:00 -0600
|
|
Subject: Bug 1935474 - disable ABSL_HAVE_THREAD_SANITIZER due to missing
|
|
symbols (like __tsan_mutex_destroy). r?ng!
|
|
|
|
Mercurial Revision: https://hg.mozilla.org/mozilla-central/rev/a248ecb7e0fa939cc145e3ef62f57783411ec367
|
|
---
|
|
abseil-cpp/absl/base/config.h | 2 ++
|
|
1 file changed, 2 insertions(+)
|
|
|
|
diff --git a/abseil-cpp/absl/base/config.h b/abseil-cpp/absl/base/config.h
|
|
index 58077a2c58f..0e4c31cf0d3 100644
|
|
--- a/abseil-cpp/absl/base/config.h
|
|
+++ b/abseil-cpp/absl/base/config.h
|
|
@@ -739,6 +739,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
|
|
// ABSL_HAVE_THREAD_SANITIZER
|
|
//
|
|
// ThreadSanitizer (TSan) is a fast data race detector.
|
|
+#if 0 // mozilla - builds fail missing tsan symbols like __tsan_mutex_destroy
|
|
#ifdef ABSL_HAVE_THREAD_SANITIZER
|
|
#error "ABSL_HAVE_THREAD_SANITIZER cannot be directly set."
|
|
#elif defined(__SANITIZE_THREAD__)
|
|
@@ -746,6 +747,7 @@ static_assert(ABSL_INTERNAL_INLINE_NAMESPACE_STR[0] != 'h' ||
|
|
#elif ABSL_HAVE_FEATURE(thread_sanitizer)
|
|
#define ABSL_HAVE_THREAD_SANITIZER 1
|
|
#endif
|
|
+#endif
|
|
|
|
// ABSL_HAVE_ADDRESS_SANITIZER
|
|
//
|