[compiler-rt] r235962 - [UBSan] Fix CMake rules for tests after r235954.
Alexey Samsonov
vonosmas at gmail.com
Mon Apr 27 18:33:56 PDT 2015
Author: samsonov
Date: Mon Apr 27 20:33:56 2015
New Revision: 235962
URL: http://llvm.org/viewvc/llvm-project?rev=235962&view=rev
Log:
[UBSan] Fix CMake rules for tests after r235954.
Make sure we don't run tests under TSan and MSan if they are
unavailable.
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=235962&r1=235961&r2=235962&view=diff
==============================================================================
--- compiler-rt/trunk/test/ubsan/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/ubsan/CMakeLists.txt Mon Apr 27 20:33:56 2015
@@ -25,13 +25,13 @@ foreach(arch ${UBSAN_SUPPORTED_ARCH})
endif()
add_ubsan_testsuite("Standalone" ubsan ${arch})
- if(";${ASAN_SUPPORTED_ARCH};" MATCHES ";${arch};")
+ if(COMPILER_RT_HAS_ASAN AND ";${ASAN_SUPPORTED_ARCH};" MATCHES ";${arch};")
add_ubsan_testsuite("AddressSanitizer" asan ${arch})
endif()
- if(";${MSAN_SUPPORTED_ARCH};" MATCHES ";${arch};")
+ if(COMPILER_RT_HAS_MSAN AND ";${MSAN_SUPPORTED_ARCH};" MATCHES ";${arch};")
add_ubsan_testsuite("MemorySanitizer" msan ${arch})
endif()
- if(";${TSAN_SUPPORTED_ARCH};" MATCHES ";${arch};")
+ if(COMPILER_RT_HAS_TSAN AND ";${TSAN_SUPPORTED_ARCH};" MATCHES ";${arch};")
add_ubsan_testsuite("ThreadSanitizer" tsan ${arch})
endif()
endforeach()
More information about the llvm-commits
mailing list