r260341 - [CMake] Pass LLVM_EXTERNAL_*_SOURCE_DIR variables to subsequent stages
Chris Bieneman via cfe-commits
cfe-commits at lists.llvm.org
Tue Feb 9 17:09:59 PST 2016
Author: cbieneman
Date: Tue Feb 9 19:09:59 2016
New Revision: 260341
URL: http://llvm.org/viewvc/llvm-project?rev=260341&view=rev
Log:
[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.
Modified:
cfe/trunk/CMakeLists.txt
Modified: cfe/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=260341&r1=260340&r2=260341&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Tue Feb 9 19:09:59 2016
@@ -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
More information about the cfe-commits
mailing list