forked from OSchip/llvm-project
[CMake] If you're building compiler-rt, the bootstrap build should depend on it.
Adding optional dependency for the bootstrap targets on compiler-rt. llvm-svn: 255801
This commit is contained in:
parent
475f52c93f
commit
5ac5d61b9c
|
@ -662,6 +662,10 @@ if (CLANG_ENABLE_BOOTSTRAP)
|
|||
CLANG_REPOSITORY_STRING
|
||||
CMAKE_MAKE_PROGRAM)
|
||||
|
||||
if(TARGET compiler-rt)
|
||||
set(RUNTIME_DEP compiler-rt)
|
||||
endif()
|
||||
|
||||
# Find all variables that start with BOOTSTRAP_ and populate a variable with
|
||||
# them.
|
||||
get_cmake_property(variableNames VARIABLES)
|
||||
|
@ -684,7 +688,7 @@ if (CLANG_ENABLE_BOOTSTRAP)
|
|||
endforeach()
|
||||
|
||||
ExternalProject_Add(bootstrap
|
||||
DEPENDS clang ${LTO_DEP}
|
||||
DEPENDS clang ${LTO_DEP} ${RUNTIME_DEP}
|
||||
PREFIX bootstrap
|
||||
SOURCE_DIR ${CMAKE_SOURCE_DIR}
|
||||
STAMP_DIR ${STAMP_DIR}
|
||||
|
|
Loading…
Reference in New Issue