[libcxx-commits] [libcxx] [libc++] First attempt to regroup a few modules in the modulemap (PR #98214)
Richard Smith via libcxx-commits
libcxx-commits at lists.llvm.org
Tue Sep 3 12:28:24 PDT 2024
zygoloid wrote:
> This sounds like a problem in how the modules are set up for the base system. Stuff that libc++ depends on cannot be in the same module as stuff that depends on libc++. That would be broken layering, and splitting up the libc++ module would be working around that, not fixing it.
The libc++ wrapper headers are presumably going to make fixing this hard. Potentially one path forward here might be to set up the base system module so that its references to (for example) "stddef.h" include the "stddef.h" from the base system, not the wrapper header from libc++. I don't recall if there's a direct way to express that in the module map for the base system currently, but that seems like something we could add if not.
https://github.com/llvm/llvm-project/pull/98214
More information about the libcxx-commits
mailing list