From: Chris Bieneman Date: Mon, 14 Sep 2015 18:36:40 +0000 (+0000) Subject: [CMake] Add llvm-ar subdirectory explicitly. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5ab5648165f4a41b7274c18ad62406b12b2119c6;p=oota-llvm.git [CMake] Add llvm-ar subdirectory explicitly. This is required because ExternalProject_Add requires all targets specified in the DEPENDS argument must exist before calling ExternalProject_Add. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@247592 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/tools/CMakeLists.txt b/tools/CMakeLists.txt index aca4350fcb2..952e114408a 100644 --- a/tools/CMakeLists.txt +++ b/tools/CMakeLists.txt @@ -30,9 +30,10 @@ if(CYGWIN OR NOT LLVM_ENABLE_PIC) set(LLVM_TOOL_LLVM_LTO_BUILD Off) endif() -# Add LTO before clang, ExternalProject requires targets specified in DEPENDS -# to exist before the call to ExternalProject_Add +# Add LTO and llvm-ar 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) # Projects supported via LLVM_EXTERNAL_*_SOURCE_DIR need to be explicitly # specified.