summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--clang/CMakeLists.txt6
1 files changed, 5 insertions, 1 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
index 88fff613fa6..ce38384060c 100644
--- a/clang/CMakeLists.txt
+++ b/clang/CMakeLists.txt
@@ -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}
OpenPOWER on IntegriCloud