[libcxx-commits] [PATCH] D120719: [runtimes] Always configure libc++abi before libc++

Louis Dionne via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Mon Mar 7 05:46:41 PST 2022


ldionne added a comment.

In D120719#3361150 <https://reviews.llvm.org/D120719#3361150>, @beanz wrote:

> In D120719#3361149 <https://reviews.llvm.org/D120719#3361149>, @ldionne wrote:
>
>> Do you know how I can create a target `libcxx-abi-shared` such that the `TARGET_LINKER_FILE` of `libcxx-abi-shared` is `$<TARGET_LINKER_FILE:cxxabi_shared>` even if `cxxabi_shared` doesn't exist yet?
>
> I don’t understand why you need a target? What is the context you’re relying on that where a generator expression on cxxabi_shared isn’t sufficient?

I need to set up an alias target because I want to be able to use the name `libcxx-abi-shared` to refer to "whichever ABI library was selected by the user". In some circumstances, that ABI library **is** `cxxabi_shared` (i.e. the just-build libc++abi library). In other contexts, it's an entirely different thing, for example an imported library for some system-installed ABI library (e.g. libcxxrt). In all those cases, I need to be able to use `TARGET_LINKER_FILE`, and for that I need an alias library, not an interface library.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120719



More information about the libcxx-commits mailing list