On Wed, 3 May 2023 at 05:53, Wilhelm Meier <wilhelm.meier@xxxxxxxx> wrote: > > Hi all, > > how do I generate a list of imported modules? > > I tried > > /usr/local/bin/g++ -c -MMD -std=c++23 -fconcepts -fmodules-ts test400.cc > > But this errors if for the imported modules no gcm files exist. So this > doesn't help because I need this list of modules the file test400.cc > imports because I want to generate the gcm files as needed. There is currently no automatic way to do that. Build system support for C++ modules is still evolving.