[compiler-rt] r208745 - Enable CAN_EXECUTE_TESTS if an EMULATOR is provided

Greg Fitzgerald gregf at codeaurora.org
Tue May 13 17:36:15 PDT 2014


Author: garious
Date: Tue May 13 19:36:15 2014
New Revision: 208745

URL: http://llvm.org/viewvc/llvm-project?rev=208745&view=rev
Log:
Enable CAN_EXECUTE_TESTS if an EMULATOR is provided

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=208745&r1=208744&r2=208745&view=diff
==============================================================================
--- compiler-rt/trunk/CMakeLists.txt (original)
+++ compiler-rt/trunk/CMakeLists.txt Tue May 13 19:36:15 2014
@@ -221,7 +221,8 @@ endif()
 # 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)
+if(("${CMAKE_HOST_SYSTEM}" STREQUAL "${CMAKE_SYSTEM}" AND (UNIX OR MSVC)) OR ANDROID
+   OR COMPILER_RT_EMULATOR)
   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