]> granicus.if.org Git - clang/commitdiff
[CMake] Allow specifying extra dependencies of bootstrap stage
authorPetr Hosek <phosek@chromium.org>
Mon, 11 Jun 2018 20:59:31 +0000 (20:59 +0000)
committerPetr Hosek <phosek@chromium.org>
Mon, 11 Jun 2018 20:59:31 +0000 (20:59 +0000)
This allows adding additional bootstrap dependencies to the bootstrap
compiler that may be needed by later stages.

Differential Revision: https://reviews.llvm.org/D47355

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

CMakeLists.txt

index fc7a3889a7c19c9fd57edd212104c01236a02ecf..ab81ec34b00d05f60196c20584be959187566482 100644 (file)
@@ -583,6 +583,10 @@ if (CLANG_ENABLE_BOOTSTRAP)
     endif()
   endif()
 
+  if(CLANG_BOOTSTRAP_EXTRA_DEPS)
+    add_dependencies(clang-bootstrap-deps ${CLANG_BOOTSTRAP_EXTRA_DEPS})
+  endif()
+
   add_custom_target(${NEXT_CLANG_STAGE}-clear
     DEPENDS ${CMAKE_CURRENT_BINARY_DIR}/${NEXT_CLANG_STAGE}-cleared
     )