From: Chris Bieneman Date: Fri, 2 Oct 2015 22:28:48 +0000 (+0000) Subject: [CMake] We need to explicitly add llvm-config before clang so that LLVM_BUILD_EXTERNA... X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=cdc351d1c9f601f20dc3944bac28377bb9556da4;p=oota-llvm.git [CMake] We need to explicitly add llvm-config before clang so that LLVM_BUILD_EXTERNAL_COMPILER_RT can depend on llvm-config. This patch is a required stepping stone to fix PR14109. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@249202 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index 952e114408a..1b57d7abd13 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -30,10 +30,11 @@ if(CYGWIN OR NOT LLVM_ENABLE_PIC) set(LLVM_TOOL_LLVM_LTO_BUILD Off) endif() -# Add LTO and llvm-ar before clang, ExternalProject requires targets specified -# in DEPENDS to exist before the call to ExternalProject_Add. +# Add LTO, llvm-ar, and llvm-config before clang, ExternalProject requires +# targets specified in DEPENDS to exist before the call to ExternalProject_Add. add_llvm_tool_subdirectory(lto) add_llvm_tool_subdirectory(llvm-ar) +add_llvm_tool_subdirectory(llvm-config) # Projects supported via LLVM_EXTERNAL_*_SOURCE_DIR need to be explicitly # specified.