From: Chris Bieneman Date: Wed, 16 Dec 2015 18:45:53 +0000 (+0000) Subject: [CMake] Make CLANG_BOOTSTRAP_TARGETS overridable X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1beea1b2a52e5ce6bdf269be2275d23d2cb3ae6c;p=clang [CMake] Make CLANG_BOOTSTRAP_TARGETS overridable 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 --- diff --git a/CMakeLists.txt b/CMakeLists.txt index e035f2d69f..88fff613fa 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -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)