bug-make
[Top][All Lists]
Advanced

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

Re: Fwd: [RFC]serialize the output of parallel make?


From: Edward Welbourne
Subject: Re: Fwd: [RFC]serialize the output of parallel make?
Date: Mon, 02 Aug 2010 10:22:06 +0200

> If my guess is not wrong, the semaphore safeguard the consistency of
> output of one command, not the order of commands.

well, with -j, commands are being run concurrently, so there *isn't* a
strict ordering of commands to "safeguard", although output shall be
delivered in roughly the order of completion of commands, with only
minor disturbances.

Still, if target A is a prerequisite of B, the recipe to make A is
run, and must complete, before the recipe to make B will be initiated;
since the recipe for A ends with whatever is ensuring its output comes
out as an atom, A's output is produced before B's recipe is initiated,
so you can be sure they appear in the right order.  So the only
ordering property among commands that actually matters *is* preserved.

        Eddy.



reply via email to

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