diff options
author | Kuba Mracek <mracek@apple.com> | 2018-06-28 16:43:43 +0000 |
---|---|---|
committer | Kuba Mracek <mracek@apple.com> | 2018-06-28 16:43:43 +0000 |
commit | df93fe46e5d15457092eda3f702b2c57be274a2f (patch) | |
tree | d69455193ce59c4fc9d665c684337ccb01ba628c | |
parent | 1ccb66c5fb6f61fee8ea9dfcc99cca828c587bdb (diff) | |
download | bcm5719-llvm-df93fe46e5d15457092eda3f702b2c57be274a2f.tar.gz bcm5719-llvm-df93fe46e5d15457092eda3f702b2c57be274a2f.zip |
Skip building TSan on platforms where there are no 64-bit architectures.
llvm-svn: 335873
-rw-r--r-- | compiler-rt/cmake/config-ix.cmake | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/compiler-rt/cmake/config-ix.cmake b/compiler-rt/cmake/config-ix.cmake index 8cf607d0e20..a118240737b 100644 --- a/compiler-rt/cmake/config-ix.cmake +++ b/compiler-rt/cmake/config-ix.cmake @@ -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}) |