[compiler-rt] r208701 - Enable sanitizer tests (check-sanitizer, check-asan) on Windows

Timur Iskhodzhanov timurrrr at google.com
Tue May 13 07:25:49 PDT 2014


Author: timurrrr
Date: Tue May 13 09:25:49 2014
New Revision: 208701

URL: http://llvm.org/viewvc/llvm-project?rev=208701&view=rev
Log:
Enable sanitizer tests (check-sanitizer, check-asan) on Windows

Modified:
    compiler-rt/trunk/CMakeLists.txt

Modified: compiler-rt/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/CMakeLists.txt?rev=208701&r1=208700&r2=208701&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Tue May 13 09:25:49 2014
@@ -218,10 +218,10 @@ else()
   endif()
 endif()
 
-# We only support running instrumented tests when we're not cross compiling
-# and target a unix-like system. We can run tests on Android even when we are
-# cross-compiling.
-if(("${CMAKE_HOST_SYSTEM}" STREQUAL "${CMAKE_SYSTEM}" AND UNIX) OR ANDROID)
+# We support running instrumented tests when we're not cross compiling
+# and target a UNIX-like system or Windows.
+# We can run tests on Android even when we are cross-compiling.
+if(("${CMAKE_HOST_SYSTEM}" STREQUAL "${CMAKE_SYSTEM}" AND (UNIX OR MSVC)) OR ANDROID)
   option(COMPILER_RT_CAN_EXECUTE_TESTS "Can we execute instrumented tests" ON)
 else()
   option(COMPILER_RT_CAN_EXECUTE_TESTS "Can we execute instrumented tests" OFF)





More information about the llvm-commits mailing list