Skip building TSan on platforms where there are no 64-bit architectures.

llvm-svn: 335873
This commit is contained in:
Kuba Mracek 2018-06-28 16:43:43 +00:00
parent 1ccb66c5fb
commit df93fe46e5
1 changed files with 5 additions and 1 deletions

View File

@ -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})