> Date: Mon, 19 May 2014 06:39:25 +0200 > From: Jan Hubicka <[email protected]> > Cc: Jan Hubicka <[email protected]>, [email protected] > > > For the second question, the short answer is "no, not right now". > > Unfortunately the jobserver feature is sort of embedded into make and > > not easily extracted. That doesn't mean it couldn't be extracted, but > > as it's written today it's not entirely clear what the higher-level > > interface would need to be. Some investigation would need to be > > undertaken. However, the POSIX-based interface for jobserver support is > > pretty trivial and I'd be surprised if it's worthwhile to extract it: it > > just reads a byte and writes a byte. If you want to try to allow for > > jobserver on Windows as well, which uses a very different method of > > tracking jobs than the POSIX ports, that would be another story. > > Since GCC supports Windows, too, I would love to have generic solution.
If you define an interface that does not talk specifically about reading or writing bytes to a pipe, the implementation that works on both Posix and Windows should not be hard. After all, what you really want is a semaphore with a count in a typical producer/consumer situation. _______________________________________________ Help-make mailing list [email protected] https://lists.gnu.org/mailman/listinfo/help-make
