[compiler-rt] r335873 - Skip building TSan on platforms where there are no 64-bit architectures.

Kuba Mracek via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 28 09:43:43 PDT 2018


Author: kuba.brecka
Date: Thu Jun 28 09:43:43 2018
New Revision: 335873

URL: http://llvm.org/viewvc/llvm-project?rev=335873&view=rev
Log:
Skip building TSan on platforms where there are no 64-bit architectures.


Modified:
    compiler-rt/trunk/cmake/config-ix.cmake

Modified: compiler-rt/trunk/cmake/config-ix.cmake
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/cmake/config-ix.cmake?rev=335873&r1=335872&r2=335873&view=diff
==============================================================================
--- compiler-rt/trunk/cmake/config-ix.cmake (original)
+++ compiler-rt/trunk/cmake/config-ix.cmake Thu Jun 28 09:43:43 2018
@@ -371,7 +371,11 @@ if(APPLE)
         if(DARWIN_${platform}_ARCHS)
           list(APPEND SANITIZER_COMMON_SUPPORTED_OS ${platform})
           list(APPEND PROFILE_SUPPORTED_OS ${platform})
-          list(APPEND TSAN_SUPPORTED_OS ${platform})
+
+          list_intersect(DARWIN_${platform}_TSAN_ARCHS DARWIN_${platform}_ARCHS ALL_TSAN_SUPPORTED_ARCH)
+          if(DARWIN_${platform}_TSAN_ARCHS)
+            list(APPEND TSAN_SUPPORTED_OS ${platform})
+          endif()
         endif()
         foreach(arch ${DARWIN_${platform}_ARCHS})
           list(APPEND COMPILER_RT_SUPPORTED_ARCH ${arch})




More information about the llvm-commits mailing list