llvm-shlib: Create object libraries for each component and link against them
commit43ceb74eb1a5801662419fb66a6bf0d5414f1ec5
authorTom Stellard <tstellar@redhat.com>
Thu, 1 Apr 2021 04:35:04 +0000 (31 21:35 -0700)
committerTom Stellard <tstellar@redhat.com>
Thu, 1 Apr 2021 21:58:44 +0000 (1 14:58 -0700)
tree649ab5d623ef848dde37fb25bd832864cfd04abf
parentb23a314146956dd29b719ab537608ced736fc036
llvm-shlib: Create object libraries for each component and link against them

This makes it possible to build libLLVM.so without first creating a
static library for each component.  In the case where only libLLVM.so is
built (i.e. ninja LLVM) this eliminates 150 linker jobs.

Reviewed By: stellaraccident

Differential Revision: https://reviews.llvm.org/D95727
llvm/cmake/modules/AddLLVM.cmake
llvm/tools/llvm-shlib/CMakeLists.txt