summaryrefslogtreecommitdiffstats
path: root/compiler-rt
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
commitdcd2748a34d574e29b1cbf89a3c2ea646c0efa64 (patch)
tree6dc73686a9ec6aedc660c634409fec54c9972d71 /compiler-rt
parentd94c0bf4bef5f498e1548ff044f533acd7a6e3e5 (diff)
downloadbcm5719-llvm-dcd2748a34d574e29b1cbf89a3c2ea646c0efa64.tar.gz
bcm5719-llvm-dcd2748a34d574e29b1cbf89a3c2ea646c0efa64.zip
[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. llvm-svn: 288786
Diffstat (limited to 'compiler-rt')
-rw-r--r--compiler-rt/test/xray/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/compiler-rt/test/xray/CMakeLists.txt b/compiler-rt/test/xray/CMakeLists.txt
index d80e7fa1b14..8c4d3b54f36 100644
--- a/compiler-rt/test/xray/CMakeLists.txt
+++ b/compiler-rt/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"
OpenPOWER on IntegriCloud