From 4ddc2156d67888ae3c98de8d3f7480539ce87d97 Mon Sep 17 00:00:00 2001 From: Michael Gottesman Date: Mon, 1 Apr 2013 04:13:03 +0000 Subject: [PATCH] Change the cmake variable COMPILER_RT_CAN_EXECUTE_TESTS to be an option so that it can overwritten. The reason why this simple change is needed is that I am trying to set up a quick cmake/ninja based buildbot and apple-clang does not support using the sanitizers currently. The default behavior follows exactly what was there before implying that no ones builds should be affected at all. llvm-svn: 178455 --- compiler-rt/CMakeLists.txt | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/compiler-rt/CMakeLists.txt b/compiler-rt/CMakeLists.txt index 5ce55bd9f5f6..fe895cf1c01c 100644 --- a/compiler-rt/CMakeLists.txt +++ b/compiler-rt/CMakeLists.txt @@ -99,11 +99,11 @@ endif() # and target a unix-like system. On Android we define the rules for building # unit tests, but don't execute them. if("${CMAKE_HOST_SYSTEM}" STREQUAL "${CMAKE_SYSTEM}" AND UNIX AND NOT ANDROID) - set(COMPILER_RT_CAN_EXECUTE_TESTS TRUE) + option(COMPILER_RT_CAN_EXECUTE_TESTS "Can we execute instrumented tests" ON) else() - set(COMPILER_RT_CAN_EXECUTE_TESTS FALSE) + option(COMPILER_RT_CAN_EXECUTE_TESTS "Can we execute instrumented tests" OFF) endif() - + # Check if compiler-rt is built with libc++. find_flag_in_string("${CMAKE_CXX_FLAGS}" "-stdlib=libc++" COMPILER_RT_USES_LIBCXX) -- GitLab