[compiler-rt] r245714 - [CMake] Need to filter out test architectures on ubsan as well.
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 21 11:06:01 PDT 2015
Author: cbieneman
Date: Fri Aug 21 13:06:00 2015
New Revision: 245714
URL: http://llvm.org/viewvc/llvm-project?rev=245714&view=rev
Log:
[CMake] Need to filter out test architectures on ubsan as well.
Modified:
compiler-rt/trunk/test/ubsan/CMakeLists.txt
Modified: compiler-rt/trunk/test/ubsan/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/ubsan/CMakeLists.txt?rev=245714&r1=245713&r2=245714&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/ubsan/CMakeLists.txt Fri Aug 21 13:06:00 2015
@@ -15,7 +15,12 @@ macro(add_ubsan_testsuite test_mode sani
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.
More information about the llvm-commits
mailing list