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

Leonard Chan via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Fri Oct 14 13:00:52 PDT 2022


leonardchan added a comment.

> 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)

(Probably poor wording on my part.) When I mention gnu-compatible here, I don't mean ABI compatible to the OS but ABI compatible to whatever another compiler might generate. For example, if you want to use gcc to compile some code targeting fuchsia, gcc won't emit relative vtables but if you want to link against stuff like libcxx, libunwind, etc. then you'd need versions of those libs that also target fuchsia but would use the "regular" vtable layout.


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