[libcxx-commits] [libcxx] [libc++] Suppress reserved module name warning for `module std` (PR #228632)

Nikolas Klauser via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 16 06:12:31 PDT 2026


philnik777 wrote:

> > Is there no way to tell clang "build the std module" though?
> 
> There is `-fmodules-driver` but I don't think it is meant to be used in production—it recompiles `std` for every module unit that `import`s it.
> 
> The fundamental design decision of `std.cppm` is that **users are expected to write** `-fmodule-output=std.pcm -o std.o` or `--precompile std.cppm -o std.pcm`.

Do you have any reference to suppart that claim?

https://github.com/llvm/llvm-project/pull/228632


More information about the libcxx-commits mailing list