the form '-fmodule-file=<BMI-path>' is deprecated for standard C++ named modules;consider to use '-fmodule-file=<module-name>=<BMI-path>' instead [-Weager-load-cxx-named-modules]
Use the declared module name by the user if present
Otherwise, use the calculated module name based on the input file
So, the final format in an example:
$ clang++ -std=c++23 -stdlib=libc++ -c -x c++-module --precompile -fmodule-file=named_mod=<... full path ...>/named_mod.cppm -o <... full path ...>/named_mod.pcm <... full path ...>/named_mod.cppm
Feature Request
As per
Clang 17
onwards:So, the final format in an example: