[PATCH] D96070: [clang] [driver] Enable static linking to libc++

Martin Storsjö via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 4 12:44:18 PST 2021


mstorsjo added a comment.

I'm not convinced that this is the right way of handling it. Libc++ can be used on top of a number of C++ ABI libraries (both libsupc++/libstdc++ and libcxxabi), and how they are linked varies with how a toolchain is assembled. In particular, if libcxx is built with `LIBCXX_ENABLE_STATIC_ABI_LIBRARY` enabled, the libcxxabi static library is merged into libc++.a, making static linking work just fine.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D96070



More information about the cfe-commits mailing list