summaryrefslogtreecommitdiff
path: root/clang/cmake
diff options
context:
space:
mode:
authorNAKAMURA Takumi <geek4civic@gmail.com>2017-05-11 13:19:24 +0000
committerNAKAMURA Takumi <geek4civic@gmail.com>2017-05-11 13:19:24 +0000
commitc51431a00c82155c0d0ab197fa63a748b03aaacd (patch)
treecd224b3d702bfb32f7b069d6b17f68df2c2720ce /clang/cmake
parent83508154ca04e550119deab53abf9d2b0fc85ddc (diff)
Fix two-stage build on windows using DistributionExample cmake cache
Thanks to Matthew Larionov <matthewtff@gmail.com>
Diffstat (limited to 'clang/cmake')
-rw-r--r--clang/cmake/caches/DistributionExample.cmake13
1 files changed, 10 insertions, 3 deletions
diff --git a/clang/cmake/caches/DistributionExample.cmake b/clang/cmake/caches/DistributionExample.cmake
index 862f547c165..551f4ee07ea 100644
--- a/clang/cmake/caches/DistributionExample.cmake
+++ b/clang/cmake/caches/DistributionExample.cmake
@@ -29,6 +29,13 @@ set(CLANG_BOOTSTRAP_TARGETS
# Setup the bootstrap build.
set(CLANG_ENABLE_BOOTSTRAP ON CACHE BOOL "")
-set(CLANG_BOOTSTRAP_CMAKE_ARGS
- -C ${CMAKE_CURRENT_LIST_DIR}/DistributionExample-stage2.cmake
- CACHE STRING "")
+
+if(STAGE2_CACHE_FILE)
+ set(CLANG_BOOTSTRAP_CMAKE_ARGS
+ -C ${STAGE2_CACHE_FILE}
+ CACHE STRING "")
+else()
+ set(CLANG_BOOTSTRAP_CMAKE_ARGS
+ -C ${CMAKE_CURRENT_LIST_DIR}/DistributionExample-stage2.cmake
+ CACHE STRING "")
+endif()