[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
Mon Apr 26 13:15:31 PDT 2021


leonardchan added a comment.

> That's odd. Does your `CMakeCache.txt` file have `CLANG_ROUND_TRIP_CC1_ARGS:BOOL=OFF` by any chance? It's possible it didn't get switched to `ON` when D97462 <https://reviews.llvm.org/D97462> landed.
>
> With the way the tests are written now, I'd expect them to fail in assert build without the code generating `-fcxx-abi=`.

Ah, I did not have that flag ON by default (incrementally working off an old invocation), and turning this on without the `GenerateArg` bit causes `cxx-abi-switch.cpp` to fail. Thanks for catching this!

In D85802#2713395 <https://reviews.llvm.org/D85802#2713395>, @phosek wrote:

> I don't see any checks to ensure that the selected ABI is compatible with the specified target, is that something you plan on implementing in a follow up change?

Added a check for this.


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