summaryrefslogtreecommitdiff
path: root/test/xray
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2016-12-06 08:22:31 +0000
committerDean Michael Berris <dberris@google.com>2016-12-06 08:22:31 +0000
commitb3dc582d904271abb310192424390d4cf79607d9 (patch)
tree6baa471695c0784409772c4237dcd0e409e5656f /test/xray
parent2fb759fa512d51f791a5bc94a31d4b952f25d04a (diff)
[XRay][compiler-rt] Fix unit test adding logic.
Before this change we would add the unit tests potentially even if we don't actually include the unit tests. This is a follow-up on D26232. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@288785 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/xray')
-rw-r--r--test/xray/CMakeLists.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/xray/CMakeLists.txt b/test/xray/CMakeLists.txt
index 4f13dde50..d80e7fa1b 100644
--- a/test/xray/CMakeLists.txt
+++ b/test/xray/CMakeLists.txt
@@ -26,7 +26,7 @@ if (COMPILER_RT_BUILD_XRAY AND COMPILER_RT_HAS_XRAY)
endif()
# Add unit tests.
-if(COMPILER_RT_INCLUDE_TESTS)
+if(COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_CAN_EXECUTE_TESTS)
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg)