[libcxx-commits] [libcxx] [libcxxabi] [libunwind] [unwind, cxx, cxxabi] Fix cmake for static/shared build (PR #176346)
Martin Storsjö via libcxx-commits
libcxx-commits at lists.llvm.org
Sat Jan 17 05:13:11 PST 2026
mstorsjo wrote:
> > It’s possible that a change like this would help here:
>
> Unfortunately not?
>
> ```
> ninja: error: build.ninja:907: multiple rules generate /Users/artagnon/src/llvm/build/lib/riscv64-unknown-unknown-elf/libc++abi.a
> ```
Ah, right. That suggested change just makes libcxxabi and libunwind consistent with that libcxx already does - and that's required for fixing the same issue if one would try to build libcxxabi or libunwind in MSVC mode.
But the issue at hand here also happens with libcxx, so that's a different situation.
Is it possible to set e.g. `CMAKE_SHARED_LIBRARY_SUFFIX=.so` or something like that, when building in your platform configuration, so that it would generate unique names for those libraries, even if they never actually are built?
https://github.com/llvm/llvm-project/pull/176346
More information about the libcxx-commits
mailing list