[PATCH] D85802: [clang] Add -fc++-abi= flag for specifying which C++ ABI to use

John McCall via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 12:40:42 PDT 2022


rjmccall added a comment.

If it comes down to it, we can make this a Fuchsia-specific flag, so that Fuchsia + alternative C++ ABI is essentially a sort of subtarget.  That way we don't have to support the arbitrary Cartesian product of OS + ABI.

With that said, while I don't know the details of ELF multilibs, presumably there has to be some kind of target-like differentiation between the slices so the linker can pick the appropriate one.  So maybe it's better to just call GNU-compatible Fuchsia a different target environment, the same way we consider Win32-oriented and MinGW-oriented Windows to be different target environments ultimately running on the same kernel.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D85802



More information about the cfe-commits mailing list