r334437 - [CMake] Allow specifying extra dependencies of bootstrap stage
Petr Hosek via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 11 13:59:31 PDT 2018
Author: phosek
Date: Mon Jun 11 13:59:31 2018
New Revision: 334437
URL: http://llvm.org/viewvc/llvm-project?rev=334437&view=rev
Log:
[CMake] Allow specifying extra dependencies of bootstrap stage
This allows adding additional bootstrap dependencies to the bootstrap
compiler that may be needed by later stages.
Differential Revision: https://reviews.llvm.org/D47355
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=334437&r1=334436&r2=334437&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Mon Jun 11 13:59:31 2018
@@ -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
)
More information about the cfe-commits
mailing list