zerodaycode / Zork

Project manager and builder automation tool for modern C++ projects
MIT License
149 stars 10 forks source link

Use the correct -fmodule-file #123

Closed TheRustifyer closed 2 months ago

TheRustifyer commented 2 months ago

Feature Request

As per Clang 17 onwards:

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]

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