[libcxx-commits] [PATCH] D134221: [runtimes] Always define the cxx_shared, cxx_static & other targets

David Tenty via Phabricator via libcxx-commits libcxx-commits at lists.llvm.org
Tue Oct 4 07:09:39 PDT 2022


daltenty added a comment.

In D134221#3833280 <https://reviews.llvm.org/D134221#3833280>, @ldionne wrote:

> @daltenty I looked at the error in https://buildkite.com/llvm-project/libcxx-ci/builds/13649#01835770-a937-4a78-a82e-1dbe3add4e72 but I don't understand why there's a duplicate target producing `libunwind.a`. Could you please have a quick look? It doesn't reproduce when I use the AIX configuration locally on my mac.

Ah, you've stumbled on some particular interestingness of CMake when it comes to AIX. AIX usually archives both shared libraries and static ones (one can actually mix the two in strange and interesting ways). Some versions of CMake on AIX implement this, so both the static and shared targets actually seem to come out with the same output names. We noticed this before but it worked ok for us in practice because we would configure for one or the other but not both.

Not sure what the best resolution is. Perhaps the easiest thing would be to modify the output names for the static libraries when on AIX to avoid the conflict? (though not sure how that effects test config and other usages)


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D134221



More information about the libcxx-commits mailing list