From cdc351d1c9f601f20dc3944bac28377bb9556da4 Mon Sep 17 00:00:00 2001 From: Chris Bieneman Date: Fri, 2 Oct 2015 22:28:48 +0000 Subject: [PATCH] [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 --- tools/CMakeLists.txt | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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. -- 2.34.1