]> granicus.if.org Git - clang/commitdiff
[CMake] Make CLANG_BOOTSTRAP_TARGETS overridable
authorChris Bieneman <beanz@apple.com>
Wed, 16 Dec 2015 18:45:53 +0000 (18:45 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 16 Dec 2015 18:45:53 +0000 (18:45 +0000)
This allows exposing a custom list of targets from the next stage build up.

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

CMakeLists.txt

index e035f2d69fef7e26be7931b7b22a86e23b5b66b4..88fff613fa662bec80625af624515022080cd652 100644 (file)
@@ -716,9 +716,10 @@ if (CLANG_ENABLE_BOOTSTRAP)
   ExternalProject_Add_StepTargets(bootstrap really-install)
   add_custom_target(bootstrap-install DEPENDS bootstrap-really-install)
 
-
-  set(ADDITIONAL_TARGETS_TO_ADD check-llvm check-clang check-all)
-  foreach(target ${ADDITIONAL_TARGETS_TO_ADD})
+  if(NOT CLANG_BOOTSTRAP_TARGETS)
+    set(CLANG_BOOTSTRAP_TARGETS check-llvm check-clang check-all)
+  endif()
+  foreach(target ${CLANG_BOOTSTRAP_TARGETS})
     # exclude from main target
     set_target_properties(bootstrap PROPERTIES _EP_${target}_EXCLUDE_FROM_MAIN On)