forked from OSchip/llvm-project
[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
This commit is contained in:
parent
be25c486dc
commit
997ee2b8cf
|
@ -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}
|
||||
|
|
|
@ -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}
|
||||
|
|
Loading…
Reference in New Issue