[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Using GNU make jobserver from GCC
From: |
Eli Zaretskii |
Subject: |
Re: Using GNU make jobserver from GCC |
Date: |
Mon, 19 May 2014 17:46:01 +0300 |
> Date: Mon, 19 May 2014 06:39:25 +0200
> From: Jan Hubicka <address@hidden>
> Cc: Jan Hubicka <address@hidden>, address@hidden
>
> > 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.
- Using GNU make jobserver from GCC, Jan Hubicka, 2014/05/19
- Re: Using GNU make jobserver from GCC,
Eli Zaretskii <=
- Re: Using GNU make jobserver from GCC, Paul Smith, 2014/05/19
- Re: Using GNU make jobserver from GCC, Eli Zaretskii, 2014/05/19
- Re: Using GNU make jobserver from GCC, Paul Smith, 2014/05/19
- Re: Using GNU make jobserver from GCC, Eli Zaretskii, 2014/05/19
- Re: Using GNU make jobserver from GCC, Jan Hubicka, 2014/05/19