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

A. Jiang via libcxx-commits libcxx-commits at lists.llvm.org
Wed Oct 14 04:49:50 PDT 2026


frederick-vs-ja wrote:

> It is unclear to me what 'when we build the module' means here;

We suppress the warnings by these lines.

https://github.com/llvm/llvm-project/blob/5ef967a9c367eee7de36585989bc0fbaaf91fa51/libcxx/modules/CMakeLists.txt.in#L55-L59

https://github.com/llvm/llvm-project/blob/5ef967a9c367eee7de36585989bc0fbaaf91fa51/libcxx/modules/CMakeLists.txt.in#L86-L90

See also 9b08c8a225ca3532067c15a136163df545e82c90 (https://reviews.llvm.org/D151814).

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


More information about the libcxx-commits mailing list