summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-02-10 01:09:59 +0000
committerChris Bieneman <beanz@apple.com>2016-02-10 01:09:59 +0000
commitb33600fe6b728629fe7ba156ad066fac4f4ab90c (patch)
tree9353ad43824e16d34f2a75b246302ec093f00e3d /clang
parenta0a0317dbc07a42777db3264938e8019eae39404 (diff)
downloadbcm5719-llvm-b33600fe6b728629fe7ba156ad066fac4f4ab90c.tar.gz
bcm5719-llvm-b33600fe6b728629fe7ba156ad066fac4f4ab90c.zip
[CMake] Pass LLVM_EXTERNAL_*_SOURCE_DIR variables to subsequent stages
For multi-stage builds we need to pass any overridden source directory variables. Without passing these the subsequent stages won't find the project sources. llvm-svn: 260341
Diffstat (limited to 'clang')
-rw-r--r--clang/CMakeLists.txt4
1 files changed, 4 insertions, 0 deletions
diff --git a/clang/CMakeLists.txt b/clang/CMakeLists.txt
index 7542bb46160..96f771b2155 100644
--- a/clang/CMakeLists.txt
+++ b/clang/CMakeLists.txt
@@ -735,6 +735,10 @@ if (CLANG_ENABLE_BOOTSTRAP)
list(APPEND PASSTHROUGH_VARIABLES
-D${varName}=${value})
endif()
+ if(${variableName} AND variableName MATCHES "LLVM_EXTERNAL_.*_SOURCE_DIR")
+ list(APPEND PASSTHROUGH_VARIABLES
+ -D${variableName}=${${variableName}})
+ endif()
endforeach()
# Populate the passthrough variables
OpenPOWER on IntegriCloud