From c3e666b4d45631ccfff38caa4d536f100c7f469e Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Wed, 16 Dec 2015 18:49:12 +0000 Subject: [PATCH] [CMake] If you're building compiler-rt, the bootstrap build should depend on it. 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 --- CMakeLists.txt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 88fff613fa..ce38384060 100644 --- a/CMakeLists.txt +++ b/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} -- 2.40.0