[compiler-rt] r288785 - [XRay][compiler-rt] Fix unit test adding logic.

Dean Michael Berris via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 6 00:22:31 PST 2016


Author: dberris
Date: Tue Dec  6 02:22:31 2016
New Revision: 288785

URL: http://llvm.org/viewvc/llvm-project?rev=288785&view=rev
Log:
[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.

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=288785&r1=288784&r2=288785&view=diff
==============================================================================
--- compiler-rt/trunk/test/xray/CMakeLists.txt (original)
+++ compiler-rt/trunk/test/xray/CMakeLists.txt Tue Dec  6 02:22:31 2016
@@ -26,7 +26,7 @@ if (COMPILER_RT_BUILD_XRAY AND COMPILER_
 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)




More information about the llvm-commits mailing list