[PATCH] D120540: [Driver] Enable to use C++20 modules standalone by -fcxx-modules

Iain Sandoe via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jun 1 10:38:08 PDT 2022


iains added a comment.

as noted before, IMO this is all a bit tangled at the moment.

Probably, a good start would be to make the driver and the FE behave the same way for the flags -- at the moment C++20 jams on fmodules and fcxx-modules (meaning that there's no way to decouple them in the FE) - however the driver still recognises them as distinct.

AFAIU, we all agree that the end game should be that we can clearly define which flags are relevant to each "modules mode" .. but we're some way away from that , and trying to move in small steps that does not  break stuff.

I see tests that have stuff like -fmodules -fmodule-ts .. but I am not sure what "modules mode" that really means? (and some combinations are actually not really doing anything, because of the jamming  on from c++20)

sorry .. this is not in any way a solution - but more a statement that the problem is quite knotty.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D120540



More information about the cfe-commits mailing list