summaryrefslogtreecommitdiff
path: root/test/xray
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2018-01-28 03:11:25 +0000
committerKuba Mracek <mracek@apple.com>2018-01-28 03:11:25 +0000
commitab55d9e963baaac175eb7a46bf3c55c28a83aa70 (patch)
tree841fb4af01b35e88d36236b66583f2f70191e4e9 /test/xray
parentb5ef2d8f9f92c183e2cfb331e9eb784f16babd34 (diff)
[xray] Don't try to run XRay unit tests on Darwin
This gets rid of a lit warning (input './projects/compiler-rt/test/xray/Unit' contained no tests). Differential Revision: https://reviews.llvm.org/D42597 git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@323613 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/xray')
-rw-r--r--test/xray/CMakeLists.txt12
1 files changed, 7 insertions, 5 deletions
diff --git a/test/xray/CMakeLists.txt b/test/xray/CMakeLists.txt
index b51b3cd0c..d049ac0f9 100644
--- a/test/xray/CMakeLists.txt
+++ b/test/xray/CMakeLists.txt
@@ -28,11 +28,13 @@ if (COMPILER_RT_BUILD_XRAY AND COMPILER_RT_HAS_XRAY)
# Add unit 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(UNIX AND NOT APPLE)
+ 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)
+ endif()
endif()
endif()