determining whether -jN was used

2024-05-23 Thread DSB
The GNU make manual for 4.2.1 says this: "To access the pipe you must parse the 'MAKEFLAGS' variable and look for the argument string '--jobserver-auth=R,W'" I don't actually need to work with the job server, just to know whether a -j flag was passed, but from my reading it should be discoverable

Re: determining whether -jN was used

2024-05-23 Thread Paul Smith
On Thu, 2024-05-23 at 11:34 -0400, DSB wrote: > "To access the pipe you must parse the 'MAKEFLAGS' variable and look > for the argument string '--jobserver-auth=R,W'" I don't have time to test this right now but I think in 4.2 you have to look at the shell variable, not the makefile variable. E.g