At least for Clang, C++ modules (given as '.cppm' files) need to be precompiled using a '--precompile' option. This produces a '.pcm' file that regular compilation needs.
So we need an additional precompile phase whose output should go into a modules folder. That folder has to be provided to the regular compilation phase using the '-fprebuilt-module-path' option.
GCC has something similar but I haven't tried it. I think a general precompile phase for certain files (ie 'cppm' or some user specified type) will cover both compilers. Perhaps inputs for module folder and module specific switches as well?
How about support for modules?
At least for Clang, C++ modules (given as '.cppm' files) need to be precompiled using a '--precompile' option. This produces a '.pcm' file that regular compilation needs.
So we need an additional precompile phase whose output should go into a modules folder. That folder has to be provided to the regular compilation phase using the '-fprebuilt-module-path' option.
GCC has something similar but I haven't tried it. I think a general precompile phase for certain files (ie 'cppm' or some user specified type) will cover both compilers. Perhaps inputs for module folder and module specific switches as well?