summaryrefslogtreecommitdiff
path: root/cmake/modules/AddLLVM.cmake
diff options
context:
space:
mode:
authorChandler Carruth <chandlerc@gmail.com>2011-07-30 08:47:05 +0000
committerChandler Carruth <chandlerc@gmail.com>2011-07-30 08:47:05 +0000
commitc58247da7020e7ee4db0abc91fedc93582e6a9d5 (patch)
treec9eb157f50df2fb2eccacd1c5d8af4cefac5c663 /cmake/modules/AddLLVM.cmake
parent10c6d12a9fd4dab411091f64db4db69670b88850 (diff)
downloadllvm-c58247da7020e7ee4db0abc91fedc93582e6a9d5.tar.gz
llvm-c58247da7020e7ee4db0abc91fedc93582e6a9d5.tar.bz2
llvm-c58247da7020e7ee4db0abc91fedc93582e6a9d5.tar.xz
Remove yet another buried and hidden implicit dependency: every single
sub-library for the targets depended on the core target CodeGen library. This completely undermined the careful work to separate the those libraries, especially the MC-layer ones. This surfaced as circular dependencies when the libraries were built as shared libraries where CMake doesn't allow cycles. This should fix PR10537. I'll watch the bots to see if there is fallout on other platforms. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@136565 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'cmake/modules/AddLLVM.cmake')
-rwxr-xr-xcmake/modules/AddLLVM.cmake7
1 files changed, 0 insertions, 7 deletions
diff --git a/cmake/modules/AddLLVM.cmake b/cmake/modules/AddLLVM.cmake
index 1ede0f0a2b..b486fe4d82 100755
--- a/cmake/modules/AddLLVM.cmake
+++ b/cmake/modules/AddLLVM.cmake
@@ -24,13 +24,6 @@ macro(add_llvm_library name)
LIBRARY DESTINATION lib${LLVM_LIBDIR_SUFFIX}
ARCHIVE DESTINATION lib${LLVM_LIBDIR_SUFFIX})
endif()
- # The LLVM Target library shall be built before its sublibraries
- # (asmprinter, etc) because those may use tablegenned files which
- # generation is triggered by the main LLVM target library. Necessary
- # for parallel builds:
- if( CURRENT_LLVM_TARGET )
- add_dependencies(${name} ${CURRENT_LLVM_TARGET})
- endif()
set_target_properties(${name} PROPERTIES FOLDER "Libraries")
endmacro(add_llvm_library name)