OSDN Git Service

[CMake] Expose runtime component check targets
authorChris Bieneman <beanz@apple.com>
Fri, 26 Aug 2016 20:34:11 +0000 (20:34 +0000)
committerChris Bieneman <beanz@apple.com>
Fri, 26 Aug 2016 20:34:11 +0000 (20:34 +0000)
This will expose the check targets for runtime project components into the top-level build. It will enable exposing targets like check-asan.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@279861 91177308-0d34-0410-b5e6-96231b3b80d8

runtimes/CMakeLists.txt

index 789a93c..139f603 100644 (file)
@@ -153,6 +153,9 @@ else() # if this is included from LLVM's CMake
 
     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 CMake
                              EXTRA_TARGETS ${extra_targets}
                                             ${test_targets}
                                             ${SUB_COMPONENTS}
+                                            ${SUB_COMPONENT_CHECK_TARGETS}
                                             ${SUB_INSTALL_TARGETS}
                              USE_TOOLCHAIN)
     if(LLVM_INCLUDE_TESTS)