r255801 - [CMake] If you're building compiler-rt, the bootstrap build should depend on it.

Chris Bieneman via cfe-commits cfe-commits at lists.llvm.org
Wed Dec 16 10:49:13 PST 2015


Author: cbieneman
Date: Wed Dec 16 12:49:12 2015
New Revision: 255801

URL: http://llvm.org/viewvc/llvm-project?rev=255801&view=rev
Log:
[CMake] If you're building compiler-rt, the bootstrap build should depend on it.

Adding optional dependency for the bootstrap targets on compiler-rt.

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=255801&r1=255800&r2=255801&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Wed Dec 16 12:49:12 2015
@@ -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}




More information about the cfe-commits mailing list