On Sat, Oct 12, 2013 at 7:01 PM, Frank Heckenbach <f.heckenb...@fh-soft.de> wrote: > - My suggestion relies on the order the jobs are *started* (which, > as I said, ought to be deterministic and the same as with "-j0", > though Paul should know this better than me).
Maybe you're talking about some restricted subcase, but *IN GENERAL*, the order in which jobs are started by make when running with -jN is dependent on how long it takes to execute the subjobs. Trivial example: all: a b a: a1.o a2.o ${LINK.c} -o $@ $^ b: b1.o b2.o ${LINK.c} -o $@ $^ Let's say building a1.o takes 1.5 second, but the others each takes 1 second. Then the start order when you do "make -j2 all" will be: a1.o a2.o b1.o a b2.o b If building a1.o takes 2.5 second then the order will be: a1.o a2.o b1.o b2.o a b If building a1.o takes 3.5 second then the order will be: a1.o a2.o b1.o b2.o b a Without -j, the order will always be a1.o a2.o a b1.o b2.o b Philip Guenther _______________________________________________ Bug-make mailing list Bug-make@gnu.org https://lists.gnu.org/mailman/listinfo/bug-make