[llvm] r279861 - [CMake] Expose runtime component check targets
Chris Bieneman via llvm-commits
llvm-commits at lists.llvm.org
Fri Aug 26 13:34:11 PDT 2016
Author: cbieneman
Date: Fri Aug 26 15:34:11 2016
New Revision: 279861
URL: http://llvm.org/viewvc/llvm-project?rev=279861&view=rev
Log:
[CMake] Expose runtime component check targets
This will expose the check targets for runtime project components into the top-level build. It will enable exposing targets like check-asan.
Modified:
llvm/trunk/runtimes/CMakeLists.txt
Modified: llvm/trunk/runtimes/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/runtimes/CMakeLists.txt?rev=279861&r1=279860&r2=279861&view=diff
==============================================================================
--- llvm/trunk/runtimes/CMakeLists.txt (original)
+++ llvm/trunk/runtimes/CMakeLists.txt Fri Aug 26 15:34:11 2016
@@ -153,6 +153,9 @@ else() # if this is included from LLVM's
if(LLVM_INCLUDE_TESTS)
set(test_targets runtimes-test-depends check-runtimes)
+ foreach(component ${SUB_COMPONENTS})
+ list(APPEND SUB_COMPONENT_CHECK_TARGETS check-${component})
+ endforeach()
endif()
# Create a runtimes target that uses this file as its top-level CMake file.
@@ -168,6 +171,7 @@ else() # if this is included from LLVM's
EXTRA_TARGETS ${extra_targets}
${test_targets}
${SUB_COMPONENTS}
+ ${SUB_COMPONENT_CHECK_TARGETS}
${SUB_INSTALL_TARGETS}
USE_TOOLCHAIN)
if(LLVM_INCLUDE_TESTS)
More information about the llvm-commits
mailing list