]> granicus.if.org Git - clang/commitdiff
[CMake] Support side-by-side checkouts in multi-stage build
authorPetr Hosek <phosek@chromium.org>
Wed, 29 Nov 2017 00:34:46 +0000 (00:34 +0000)
committerPetr Hosek <phosek@chromium.org>
Wed, 29 Nov 2017 00:34:46 +0000 (00:34 +0000)
Passthrough LLVM_ENABLE_{PROJECTS,RUNTIMES} to followup stages to
support the side-by-side checkouts (aka monorepo layout).

Differential Revision: https://reviews.llvm.org/D40258

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@319267 91177308-0d34-0410-b5e6-96231b3b80d8

CMakeLists.txt

index dac32b9cdd76928b4145ead3b453b986416af4aa..e27a718e41a13f9ed272fb53031a5cb53f804ca5 100644 (file)
@@ -603,7 +603,9 @@ if (CLANG_ENABLE_BOOTSTRAP)
     LLVM_BINUTILS_INCDIR
     CLANG_REPOSITORY_STRING
     CMAKE_MAKE_PROGRAM
-    CMAKE_OSX_ARCHITECTURES)
+    CMAKE_OSX_ARCHITECTURES
+    LLVM_ENABLE_PROJECTS
+    LLVM_ENABLE_RUNTIMES)
 
   # We don't need to depend on compiler-rt if we're building instrumented
   # because the next stage will use the same compiler used to build this stage.