Adding optional dependency for the bootstrap targets on compiler-rt.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@255801
91177308-0d34-0410-b5e6-
96231b3b80d8
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)
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}