summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Bieneman <beanz@apple.com>2016-08-18 21:41:21 +0000
committerChris Bieneman <beanz@apple.com>2016-08-18 21:41:21 +0000
commit997ee2b8cff8441ce069a6bf14d049cf7f41642c (patch)
tree5fcc161f216dfc8f020d1c871ff6ba735c2a7c3a
parentbe25c486dc57c4ffd0e109d420844392ba34090e (diff)
downloadbcm5719-llvm-997ee2b8cff8441ce069a6bf14d049cf7f41642c.tar.gz
bcm5719-llvm-997ee2b8cff8441ce069a6bf14d049cf7f41642c.zip
[CMake] Make llvm-config implicit dependency for subprojects
The subproject interface being used for runtime libraries expects that llvm-config is passed into the subproject for consumption. We currently do this for every subproject, so we should expect that all LLVM ExternalProjects depend on llvm-config for the time being. Eventually I'd like to see the sub-projects using LLVMConfig.cmake instead of the llvm-config binary, but that will take time to roll out. llvm-svn: 279155
-rw-r--r--llvm/cmake/modules/LLVMExternalProjectUtils.cmake2
-rw-r--r--llvm/runtimes/CMakeLists.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/llvm/cmake/modules/LLVMExternalProjectUtils.cmake b/llvm/cmake/modules/LLVMExternalProjectUtils.cmake
index 3e7355d4d6b..efe47e73441 100644
--- a/llvm/cmake/modules/LLVMExternalProjectUtils.cmake
+++ b/llvm/cmake/modules/LLVMExternalProjectUtils.cmake
@@ -120,7 +120,7 @@ function(llvm_ExternalProject_Add name source_dir)
endif()
ExternalProject_Add(${name}
- DEPENDS ${ARG_DEPENDS}
+ DEPENDS ${ARG_DEPENDS} llvm-config
${name}-clobber
PREFIX ${CMAKE_BINARY_DIR}/projects/${name}
SOURCE_DIR ${source_dir}
diff --git a/llvm/runtimes/CMakeLists.txt b/llvm/runtimes/CMakeLists.txt
index 4fe5f0036fc..a155cacb75b 100644
--- a/llvm/runtimes/CMakeLists.txt
+++ b/llvm/runtimes/CMakeLists.txt
@@ -81,7 +81,7 @@ else() # if this is included from LLVM's CMake
# together in a single CMake invocaiton.
llvm_ExternalProject_Add(runtimes
${CMAKE_CURRENT_SOURCE_DIR}
- DEPENDS ${deps} llvm-config
+ DEPENDS ${deps}
# Builtins were built separately above
CMAKE_ARGS -DCOMPILER_RT_BUILD_BUILTINS=Off
PASSTHROUGH_PREFIXES ${prefixes}
OpenPOWER on IntegriCloud