]> granicus.if.org Git - clang/commitdiff
[CMake] If you're building compiler-rt, the bootstrap build should depend on it.
authorChris Bieneman <beanz@apple.com>
Wed, 16 Dec 2015 18:49:12 +0000 (18:49 +0000)
committerChris Bieneman <beanz@apple.com>
Wed, 16 Dec 2015 18:49:12 +0000 (18:49 +0000)
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

index 88fff613fa662bec80625af624515022080cd652..ce38384060c0a436e0a964f23413f1f542e4587d 100644 (file)
@@ -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}