summaryrefslogtreecommitdiffstats
path: root/llvm
diff options
context:
space:
mode:
authorManuel Klimek <klimek@google.com>2015-10-22 08:31:46 +0000
committerManuel Klimek <klimek@google.com>2015-10-22 08:31:46 +0000
commitf80abb9ec7cea99583ebd709ab3dd343105dcf2a (patch)
treedb2aba6e424a61b2f10b1f8d401823cf7f435df2 /llvm
parent1b0d7066ff264de87e6b7ff4fc71f273edaf69be (diff)
downloadbcm5719-llvm-f80abb9ec7cea99583ebd709ab3dd343105dcf2a.tar.gz
bcm5719-llvm-f80abb9ec7cea99583ebd709ab3dd343105dcf2a.zip
Fix add_llvm_external_project.
r250835 unintentionally discarded the optional parameter to the add_llvm_external_project() macro that may point to a path when the said path is different from ${name}. This should fix it by passing ${ARGN} on to add_llvm_subdirectory(). The problem manifests itself with e.g. add_llvm_external_project(clang-tools-extra extra) from clang/tools/CMakeLists.txt Patch by Luchesar V. Iliev. llvm-svn: 251001
Diffstat (limited to 'llvm')
-rw-r--r--llvm/cmake/modules/AddLLVM.cmake2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/cmake/modules/AddLLVM.cmake b/llvm/cmake/modules/AddLLVM.cmake
index 84f3216d6bc..c3e1679bdb5 100644
--- a/llvm/cmake/modules/AddLLVM.cmake
+++ b/llvm/cmake/modules/AddLLVM.cmake
@@ -781,7 +781,7 @@ endmacro()
# enable or disable building it with everything else.
# Additional parameter can be specified as the name of directory.
macro(add_llvm_external_project name)
- add_llvm_subdirectory(LLVM TOOL ${name})
+ add_llvm_subdirectory(LLVM TOOL ${name} ${ARGN})
endmacro()
macro(add_llvm_tool_subdirectory name)
OpenPOWER on IntegriCloud