r255799 - [CMake] Make CLANG_BOOTSTRAP_TARGETS overridable

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 16 10:45:55 PST 2015


Author: cbieneman
Date: Wed Dec 16 12:45:53 2015
New Revision: 255799

URL: http://llvm.org/viewvc/llvm-project?rev=255799&view=rev
Log:
[CMake] Make CLANG_BOOTSTRAP_TARGETS overridable

This allows exposing a custom list of targets from the next stage build up.

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=255799&r1=255798&r2=255799&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Wed Dec 16 12:45:53 2015
@@ -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)
 




More information about the cfe-commits mailing list