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

David Blaikie via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 12:11:40 PDT 2022


dblaikie added a comment.

In D85802#3859235 <https://reviews.llvm.org/D85802#3859235>, @leonardchan wrote:

> In D85802#3858760 <https://reviews.llvm.org/D85802#3858760>, @rjmccall wrote:
>
>> Does Fuchsia still need this?  If those experiments have stabilized, maybe we can just remove it.  Also, it should probably have been a -cc1 flag in the first place.
>
> We still use this for making gnu-compatible multilibs (that is, multilibs which use regular itanium vtables): https://github.com/llvm/llvm-project/blob/2c7b7eca85c2ccc9b0d5c65169213ce499652f92/clang/cmake/caches/Fuchsia-stage2.cmake#L200

Naive question, but what does it mean to target Fuschia but be gnu-compatible? (how would that be different than using whatever gnu OS (linux, etc) the other code was built for)

> AFAICT there doesn't seem to be a way where one can select the C++ ABI independently of the target platform.




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