[Top][All Lists]

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

Re: Infinite loop bug with parallel make

From: Paul Smith
Subject: Re: Infinite loop bug with parallel make
Date: Fri, 22 Feb 2013 21:38:22 -0500

On Sat, 2013-02-23 at 02:32 +0000, Ian Lynagh wrote:
> The problem was that our compiler generates 2 output files (foo.o and
> foo.hi) when compiling one source file, and we had thus ended up with
> a bunch of rules like
>     %.hi: %.o ;

The right way to declare a rule that generates multiple targets is:

   %.o %.hi : %.c

In particular this won't break things when parallel builds are involved.
Is there some reason that doesn't work for you?

reply via email to

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