[libcxx-commits] [libcxx] [libc++][modules] Remove a dependency of __type_traits/invoke.h on __utility (PR #106795)
Louis Dionne via libcxx-commits
libcxx-commits at lists.llvm.org
Thu Sep 5 06:32:46 PDT 2024
ldionne wrote:
As I experiment with this more and more, the approach of having a monolithic top-level module to avoid actually disentangling our code dependencies doesn't really work well. You end up in cycles with things that are outside that monolithic module extremely fast.
IMO the only sane way of proceeding is to actually disentangle the dependencies in the code. If you forget about the modulemap itself, what we need to do is basically simplify the include graph to make it acyclic, and then the modulemap will follow naturally from that. I don't think there's any way around that.
https://github.com/llvm/llvm-project/pull/106795
More information about the libcxx-commits
mailing list