public inbox for gcc@gcc.gnu.org
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@mvista.com>
To: DJ Delorie <dj@redhat.com>
Cc: gcc@gcc.gnu.org, neroden@gcc.gnu.org
Subject: Re: Serialization dependencies muck up configure-on-demand
Date: Mon, 23 Dec 2002 12:40:00 -0000	[thread overview]
Message-ID: <20021223185134.GA15879@nevyn.them.org> (raw)
In-Reply-To: <200212231833.gBNIX4o14365@greed.delorie.com>

On Mon, Dec 23, 2002 at 01:33:04PM -0500, DJ Delorie wrote:
> 
> > Do we need the serialization dependencies?
> 
> We need to make sure that no two configures run at the same time.  If
> you can figure out a better way to do that, please do.
> 
> > While we support all sorts of versions of Make, do we actually
> > support parallel make on anything that doesn't recognize
> > .NOTPARALLEL?
> 
> We want to run the toplevel makefile in parallel, because we want to
> do the builds and tests in parallel.  So, we want to get rid of
> .NOTPARALLEL, not depend on it.

Well, I'm not sure how useful of a goal that is; I suppose it would
speed up re-making when most directories don't need to be updated or
updated substantially.  I don't see a better way without being truly
gross about it... no, even having a combinatorial number of
serialization dependencies won't work since they have to be on real
files.

However, GNU make has the answer.  We'd probably have to autoconf for
this feature, it's quite new:
    * A new feature exists: order-only prerequisites.  These prerequisites
      affect the order in which targets are built, but they do not impact
      the rebuild/no-rebuild decision of their dependents.  That is to say,
      they allow you to require target B be built before target A, without
      requiring that target A will always be rebuilt if target B is updated.
      Patch for this feature provided by Greg McGary <greg@mcgary.org>.

The syntax is:
TARGETS : NORMAL-PREREQUISITES | ORDER-ONLY-PREREQUISITES

So if that works in a test at autoconf time, we could use it.

-- 
Daniel Jacobowitz
MontaVista Software                         Debian GNU/Linux Developer

  reply	other threads:[~2002-12-23 18:50 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-23 11:36 Daniel Jacobowitz
2002-12-23 12:39 ` DJ Delorie
2002-12-23 12:40   ` Daniel Jacobowitz [this message]
2002-12-23 13:46     ` DJ Delorie
2002-12-23 14:37   ` Alexandre Oliva
2002-12-23 15:07     ` DJ Delorie
2002-12-26  1:38       ` Alexandre Oliva
2002-12-26  6:53         ` DJ Delorie
2002-12-23 13:25 Nathanael Nerode
2002-12-23 13:36 ` Daniel Jacobowitz
2002-12-24 15:42   ` Paul D. Smith
2002-12-23 13:28 Nathanael Nerode
2002-12-23 13:34 ` Daniel Jacobowitz

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20021223185134.GA15879@nevyn.them.org \
    --to=drow@mvista.com \
    --cc=dj@redhat.com \
    --cc=gcc@gcc.gnu.org \
    --cc=neroden@gcc.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).