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

Sharadh Rajaraman via libcxx-commits libcxx-commits at lists.llvm.org
Fri Oct 16 04:49:52 PDT 2026


sharadhr wrote:

> but I don't think you're ever supposed to compile the modules manually unless you're doing some low level shenanigans

But... we are. I said it above: users need to invoke Clang at least once on `std.cppm` to emit the BMI, either as a side effect of compiling the object file (which is not necessary in `std.cppm`'s case), or running `--precompile`. This _will_ emit a warning, and it should not happen.

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


More information about the libcxx-commits mailing list