[PATCH] D108394: add tsan shared library

Zijun Zhao via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 18 17:34:28 PST 2022


ZijunZhao updated this revision to Diff 401061.
ZijunZhao edited the summary of this revision.
ZijunZhao added a comment.

Correct the condition and when the minSdkVersion is above 23 on Android.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D108394/new/

https://reviews.llvm.org/D108394

Files:
  compiler-rt/cmake/config-ix.cmake


Index: compiler-rt/cmake/config-ix.cmake
===================================================================
--- compiler-rt/cmake/config-ix.cmake
+++ compiler-rt/cmake/config-ix.cmake
@@ -749,9 +749,14 @@
   set(COMPILER_RT_HAS_PROFILE FALSE)
 endif()
 
-if (COMPILER_RT_HAS_SANITIZER_COMMON AND TSAN_SUPPORTED_ARCH AND
-    OS_NAME MATCHES "Darwin|Linux|FreeBSD|Android|NetBSD")
-  set(COMPILER_RT_HAS_TSAN TRUE)
+if (COMPILER_RT_HAS_SANITIZER_COMMON AND TSAN_SUPPORTED_ARCH)
+    if (OS_NAME MATCHES "Linux|Darwin|FreeBSD|NetBSD")
+      set(COMPILER_RT_HAS_TSAN TRUE)
+    elseif (OS_NAME MATCHES "Android" AND ANDROID_PLATFORM_LEVEL GREATER 23)
+      set(COMPILER_RT_HAS_TSAN TRUE)
+    else()
+      set(COMPILER_RT_HAS_TSAN FALSE)
+    endif()
 else()
   set(COMPILER_RT_HAS_TSAN FALSE)
 endif()


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D108394.401061.patch
Type: text/x-patch
Size: 804 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220119/a21aa0ee/attachment.bin>


More information about the llvm-commits mailing list