[compiler-rt] r323613 - [xray] Don't try to run XRay unit tests on Darwin
Kuba Mracek via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 27 19:11:25 PST 2018
Author: kuba.brecka
Date: Sat Jan 27 19:11:25 2018
New Revision: 323613
URL: http://llvm.org/viewvc/llvm-project?rev=323613&view=rev
Log:
[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
Modified:
compiler-rt/trunk/test/xray/CMakeLists.txt
Modified: compiler-rt/trunk/test/xray/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/test/xray/CMakeLists.txt?rev=323613&r1=323612&r2=323613&view=diff
==============================================================================
--- compiler-rt/trunk/test/xray/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/xray/CMakeLists.txt Sat Jan 27 19:11:25 2018
@@ -28,11 +28,13 @@ if (COMPILER_RT_BUILD_XRAY AND COMPILER_
# 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()
More information about the llvm-commits
mailing list