[libcxx-commits] [libcxx] [libc++] First attempt to regroup a few modules in the modulemap (PR #98214)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Fri Jul 12 13:25:48 PDT 2024
ldionne wrote:
> I am wondering what prevents us from wrapping all of the content of the modulemap into a `module std {`. We do this [here](https://github.com/root-project/cling/blob/master/include/cling/std_darwin.modulemap) and we ship it with practically all versions of osx. It mostly works across versions of libcxx/xcode.
The approach you link to has the same problem that caused us to split the modulemap in the first place. It creates a circular dependency if there's a module in the SDK that includes e.g. `stdint.h` since that's going to use the libc++ `stdint.h`, but the libc++ module already depends on the SDK.
I'm not convinced that there's any better approach than having a single, simplified modulemap that matches our actual library organization. I'd be happy to change my mind if someone can explain why that can't work or is not desirable, but so far I have not seen any evidence to support that, so I'm still pretty set on pursuing that.
https://github.com/llvm/llvm-project/pull/98214
More information about the libcxx-commits
mailing list