[PATCH] D99155: [CMake] Support building libLLVM.a archive

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 23 14:06:22 PDT 2021


phosek added a comment.

In D99155#2646001 <https://reviews.llvm.org/D99155#2646001>, @phosek wrote:

> In D99155#2645953 <https://reviews.llvm.org/D99155#2645953>, @dangyi wrote:
>
>> I'm wondering how `LLVM_BUILD_LLVM_ARCHIVE` interacts with `LLVM_DISTRIBUTION_COMPONENTS`? More specifically, can we only include a portion of LLVM libraries in `libLLVM.a`?
>
> `llvm-archive` would be in `LLVM_DISTRIBUTION_COMPONENTS`, we would need a separate option to select which archives are merged into `libLLVM.a`.

We could make `LLVM_BUILD_LLVM_ARCHIVE` either a boolean, in which case it includes everything, or a list of libraries to include, that should be a simple change.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D99155/new/

https://reviews.llvm.org/D99155



More information about the llvm-commits mailing list