Re: State and plans for C++20 module support?

2025-02-21 Thread Paul Smith
On Fri, 2025-02-21 at 12:26 +0100, Ben Boeckel wrote: > CMake's Makefile implementation can support it; it supports Fortran > modules after all. However, `ninja` support is far easier as it (in > CMake's implementation) has a single graph for the entire build. The > Makefiles generator is a 3-level

Re: State and plans for C++20 module support?

2025-02-21 Thread Ben Boeckel
On Tue, Feb 18, 2025 at 16:32:37 -0500, Zack Weinberg wrote: > On Tue, Feb 18, 2025, at 8:39 AM, Christoph Grüninger via Discussion list for > the autoconf build system wrote: > > I am interested in the state and plans for supporting C++20 modules. I am as well. I had actually started drafting an

Re: State and plans for C++20 module support?

2025-02-21 Thread Ben Boeckel
On Tue, Feb 18, 2025 at 17:14:47 -0500, Paul Smith wrote: > On Tue, 2025-02-18 at 16:32 -0500, Zack Weinberg wrote: > > 2) Besides an "is this feature available" probe, I don't know if any > >    support for C++ 2020 modules is even *necessary*, because I don't > >    know how they work.  If any ot

Re: State and plans for C++20 module support?

2025-02-21 Thread Ben Boeckel
On Fri, Feb 21, 2025 at 09:40:45 -0500, Paul Smith wrote: > On Fri, 2025-02-21 at 12:26 +0100, Ben Boeckel wrote: > > CMake's Makefile implementation can support it; it supports Fortran > > modules after all. However, `ninja` support is far easier as it (in > > CMake's implementation) has a single

Re: State and plans for C++20 module support?

2025-02-21 Thread Paul Smith
On Fri, 2025-02-21 at 16:53 +0100, Ben Boeckel wrote: > > I think it should be possible to preserve the per-directory entry > > points, now that POSIX make supports "include". > > Does it preserve the "defer actually including until its associated > recipe is up-to-date" behavior? If my memory ser

Re: State and plans for C++20 module support?

2025-02-21 Thread Tom Tromey
> "Jacob" == Jacob Bachmeyer writes: Jacob> Well, bringing the topic back to Automake, what prevents using Jacob> something like: Jacob> Makefile: ${srcdir}/Makefile.in Jacob> ${top_builddir}/config.status Jacob> ${srcdir}/Makefile.in: ${srcdir}/Makefile.am Jacob> $(AUTOMAKE) ... Jacob> O

Re: State and plans for C++20 module support?

2025-02-21 Thread Jacob Bachmeyer
On 2/21/25 10:50, Paul Smith wrote: [...] Just to be clear, what you say above is not precisely the behavior you get from GNU Make. GNU Make considers every makefile it reads (for any reason including "include") to be a goal and tries to rebuild it first before any other targets are built. If