Enabling the jobserver

2024-06-10 Thread Richard Copley
What is the correct way to cause jobserver information to be passed to child processes? I tried this Makefile: all: @echo Jobserver present? $(filter jobserver,$(.FEATURES)) +@sh -c "echo \"make toplevel MAKEFLAGS=${MAKEFLAGS}\"" +@sh -c "echo \"child toplevel MAKEFLAGS=$${MAKEFLAGS}\"

Re: Enabling the jobserver

2024-06-10 Thread Paul Smith
On Mon, 2024-06-10 at 22:14 +0100, Richard Copley wrote: > What is the correct way to cause jobserver information to be passed > to > child processes? I tried this Makefile: > > all: >     @echo Jobserver present? $(filter jobserver,$(.FEATURES)) >     +@sh -c "echo \"make toplevel MAKEFLAGS=${MAK

Re: Enabling the jobserver

2024-06-10 Thread Richard Copley
> If you provide a limit you'll see different behavior, e.g.: > > make -j5 I see, thank you. It might not hurt to mention this in the manual, obvious though it may seem. Having passed that hurdle, I see that GCC does not handle the named-semaphore jobserver in native GNU Make on Windows. (I had

Re: Enabling the jobserver

2024-06-10 Thread Eli Zaretskii
> From: Richard Copley > Date: Mon, 10 Jun 2024 23:29:28 +0100 > Cc: help-make@gnu.org > > Having passed that hurdle, I see that GCC does not handle the > named-semaphore jobserver in native GNU Make on Windows. (I had to > read GCC's source to see it, since the error in that case simply says > "