[Top][All Lists]

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

Dependency tracking thought

From: Tom Tromey
Subject: Dependency tracking thought
Date: 12 May 2001 19:33:14 -0600

gcc3 very nearly does exactly what automake wants in terms of
dependency tracking.

I think that ideally automake should recognize this and avoid using
depcomp when it discovers that the user is using gcc3.  In this
situation instead of invoking depcomp we would just invoke gcc like
depcomp does (with a small change):

    gcc <args> <dependency args> && mv "$tmpdepfile" "$depfile"

I don't think we need the explicit `rm $tmpdepfile' because the whole
problem is that gcc deletes it on failure.

Akim, any comments on the best approach to implementing this?
One problem I see is that detecting gcc3 in a language-independent way
is not going to be easy, at least not without autoconf assistance.


reply via email to

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