summaryrefslogtreecommitdiff
path: root/test/xray
diff options
context:
space:
mode:
authorDean Michael Berris <dberris@google.com>2016-12-06 08:40:16 +0000
committerDean Michael Berris <dberris@google.com>2016-12-06 08:40:16 +0000
commit927ae7cfc76024af13912779db6bd356325675d7 (patch)
tree95fda7ccd7fec20bb519ac02f991ba11e21f4ceb /test/xray
parentb3dc582d904271abb310192424390d4cf79607d9 (diff)
[XRay][compiler-rt] CMake fixes for XRay -- take 2.
The bootstrap buildbot complains about not being able to find the unittests for XRay, when the conditionals to include or not include tests and unit tests don't match. This is a follow-up to D26232. git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@288786 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/xray')
-rw-r--r--test/xray/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/test/xray/CMakeLists.txt b/test/xray/CMakeLists.txt
index d80e7fa1b..8c4d3b54f 100644
--- a/test/xray/CMakeLists.txt
+++ b/test/xray/CMakeLists.txt
@@ -26,12 +26,14 @@ if (COMPILER_RT_BUILD_XRAY AND COMPILER_RT_HAS_XRAY)
endif()
# Add unit tests.
-if(COMPILER_RT_INCLUDE_TESTS AND COMPILER_RT_CAN_EXECUTE_TESTS)
+if(COMPILER_RT_INCLUDE_TESTS)
configure_lit_site_cfg(
${CMAKE_CURRENT_SOURCE_DIR}/Unit/lit.site.cfg.in
${CMAKE_CURRENT_BINARY_DIR}/Unit/lit.site.cfg)
- list(APPEND XRAY_TEST_DEPS XRayUnitTests)
- list(APPEND XRAY_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/Unit)
+ if (COMPILER_RT_CAN_EXECUTE_TESTS AND NOT ANDROID)
+ list(APPEND XRAY_TEST_DEPS XRayUnitTests)
+ list(APPEND XRAY_TESTSUITES ${CMAKE_CURRENT_BINARY_DIR}/Unit)
+ endif()
endif()
add_lit_testsuite(check-xray "Running the XRay tests"