bug-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #40225] Deterministic output ordering


From: Paul D. Smith
Subject: [bug #40225] Deterministic output ordering
Date: Thu, 10 Oct 2013 05:23:16 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.66 Safari/537.36

Follow-up Comment #2, bug #40225 (project make):

A non-parallel build is actually fully deterministic for a given makefile. 
Make (I believe this is specified by POSIX) will always try to build the first
prerequisite first, then the second, etc.  Of course there are ways to get
non-determinism: for example IIRC the $(wildcard ...) function returns files
in "directory order", unsorted, which is non-deterministic.

I'm not saying Frank's idea would not work but I think it might be slightly
hairier than described here.

Regarding vmsjobs.c: that's OK because vmsjobs.c is actually not compiled
separately.  It's #included into jobs.c, so it has access to all jobs.c's
static functions etc.  This is not orthodox, but I really needed to split out
the VMS support as it was hard to follow job.c (it still is, but it was worse
before).

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?40225>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]