summaryrefslogtreecommitdiffstats
path: root/clang
diff options
context:
space:
mode:
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