forked from OSchip/llvm-project
[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:
parent
b34eef7b41
commit
d94c0bf4be
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue