[PATCH] D137059: [Driver] [Modules] Introduce -fsave-std-c++-module-file= to specify the path of the module file (2/2)

Ben Boeckel via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Dec 5 19:29:07 PST 2022


ben.boeckel added a comment.

In D137059#3934448 <https://reviews.llvm.org/D137059#3934448>, @dblaikie wrote:

> I'm still curious what about the details of other compilers - I think from the sounds of it, @iains suggested GCC doesn't support this yet so we'll need to pick/name the flag ourselves & he's happy to implement whatever we pick? I guess Microsoft's flag naming is sufficiently differently styled as to offer no useful inspiration? Though wouldn't hurt to know what they name it.
>
> Any other examples you had in mind, Ben?

GCC supports naming the output file by asking the "module mapper" where a module with a given name lives (also used for finding imported modules). MSVC uses the `-ifcOutput` flag to specify where to write any exported module data to. See this CMake code which handles the "module mapping" for the various compilers: https://gitlab.kitware.com/cmake/cmake/-/blob/master/Source/cmCxxModuleMapper.cxx


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

https://reviews.llvm.org/D137059



More information about the cfe-commits mailing list