[compiler-rt] [compiler-rt][TSan] Add support for Android (PR #147580)

via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 3 13:52:25 PDT 2025


================
@@ -3135,7 +3139,7 @@ void InitializeInterceptors() {
 
   TSAN_INTERCEPT(fork);
   TSAN_INTERCEPT(vfork);
-#if SANITIZER_LINUX
+#if SANITIZER_LINUX && !SANITIZER_ANDROID
----------------
enh-google wrote:

@fmayer --- what's the compatibility expectation for compiler-rt? i'm wondering whether i should make pthread_create() and fork() call clone() via a hidden alias so they don't get intercepted ... but but then there's nothing to do here other than wait a decade?

https://github.com/llvm/llvm-project/pull/147580


More information about the llvm-commits mailing list