[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 11:47:38 PDT 2024
zygoloid wrote:
> A single module can never work. For example libc++'s `math.h` includes the base system's `math.h` header, but other parts of the system module will include e.g. libc++'s `stddef.h`. So if libc++'s `math.h` and libc++'s `stddef.h` are in the same module, we automatically have a cycle.
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.
https://github.com/llvm/llvm-project/pull/98214
More information about the libcxx-commits
mailing list