diff options
author | Chris Bieneman <beanz@apple.com> | 2015-08-21 18:06:00 +0000 |
---|---|---|
committer | Chris Bieneman <beanz@apple.com> | 2015-08-21 18:06:00 +0000 |
commit | 16812393ef6337e84b907d585222f5eb8bdd0a1e (patch) | |
tree | 000ee320217b0e5d7e9ae53ce62833ea841488e2 /test/ubsan | |
parent | 76d6891ca7f1680bd58d947757b30a9e97ae2443 (diff) |
[CMake] Need to filter out test architectures on ubsan as well.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@245714 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/ubsan')
-rw-r--r-- | test/ubsan/CMakeLists.txt | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ubsan/CMakeLists.txt b/test/ubsan/CMakeLists.txt index cd197c7ae..0938ea2b1 100644 --- a/test/ubsan/CMakeLists.txt +++ b/test/ubsan/CMakeLists.txt @@ -15,7 +15,12 @@ macro(add_ubsan_testsuite test_mode sanitizer arch) endif() endmacro() -foreach(arch ${UBSAN_SUPPORTED_ARCH}) +set(UBSAN_TEST_ARCH ${UBSAN_SUPPORTED_ARCH}) +if(APPLE) + darwin_filter_host_archs(UBSAN_SUPPORTED_ARCH UBSAN_TEST_ARCH) +endif() + +foreach(arch ${UBSAN_TEST_ARCH}) set(UBSAN_TEST_TARGET_ARCH ${arch}) if(${arch} MATCHES "arm|aarch64") # This is only true if we're cross-compiling. |