[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.

llvm-svn: 288785
This commit is contained in:
Dean Michael Berris 2016-12-06 08:22:31 +00:00
parent b34eef7b41
commit d94c0bf4be
1 changed files with 1 additions and 1 deletions

View File

@ -26,7 +26,7 @@ if (COMPILER_RT_BUILD_XRAY AND COMPILER_RT_HAS_XRAY)
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)