[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:
Chris Bieneman 2015-12-16 18:49:12 +00:00
parent 475f52c93f
commit 5ac5d61b9c
1 changed files with 5 additions and 1 deletions

View File

@ -662,6 +662,10 @@ if (CLANG_ENABLE_BOOTSTRAP)
CLANG_REPOSITORY_STRING CLANG_REPOSITORY_STRING
CMAKE_MAKE_PROGRAM) 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 # Find all variables that start with BOOTSTRAP_ and populate a variable with
# them. # them.
get_cmake_property(variableNames VARIABLES) get_cmake_property(variableNames VARIABLES)
@ -684,7 +688,7 @@ if (CLANG_ENABLE_BOOTSTRAP)
endforeach() endforeach()
ExternalProject_Add(bootstrap ExternalProject_Add(bootstrap
DEPENDS clang ${LTO_DEP} DEPENDS clang ${LTO_DEP} ${RUNTIME_DEP}
PREFIX bootstrap PREFIX bootstrap
SOURCE_DIR ${CMAKE_SOURCE_DIR} SOURCE_DIR ${CMAKE_SOURCE_DIR}
STAMP_DIR ${STAMP_DIR} STAMP_DIR ${STAMP_DIR}