[libcxx-commits] [libcxx] [libc++][modules] Rewrite the modulemap to have fewer top-level modules (PR #107638)

Ian Anderson via libcxx-commits libcxx-commits at lists.llvm.org
Tue Sep 17 09:21:29 PDT 2024


ian-twilightcoder wrote:

> > > > @ldionne, thank you for your efforts. This is a step in the direction where we would like to be. Do you plan further simplification of the modulemap and switching to even less modules?
> > > 
> > > 
> > > If we can, yes. I'd like to investigate umbrella headers to simplify the maintenance of the modulemap, but if you have other suggestions for simplifications and improvements I'd be all ears since I don't know what else we could do.
> > 
> > 
> > I think umbrella headers would help us reduce the size of the modulemap and help with removal/addition of header files.
> 
> I agree.

You should be able to use umbrella directories for most of these without having to add a bunch of headers that have to be generated/maintained. The only ones where you can't are where the directory is split between different modules like __utility

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


More information about the libcxx-commits mailing list