[Top][All Lists]

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

[bug #30381] Don't avoid implicit rule recursion quite so soon.

From: Reinier Post
Subject: [bug #30381] Don't avoid implicit rule recursion quite so soon.
Date: Mon, 01 Nov 2010 09:53:46 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv: Gecko/20101026 Firefox/3.6.12 GTB7.1

Follow-up Comment #11, bug #30381 (project make):

Strike my last comment: invoking a rule multiple times in a chain appears to
work just fine.

To prove this, here is a patch against the make 3.82 source that adds a -M
option, which allows this; a test script is included, but string translations
and documentation updates are missing.

The idea is really simple: it replaces rule->in_use with rule->nr_reuses and
compare that number against the value of -M.  Note that -M without an argument
means 'infinite' (same as for -j), so it allows rule chaining to go into an
infinite loop.

I will use this as a workaround for myself.  I didn't use the idea discussed
below (to allow recursion only when the dependency is shorter than the target)
only because it was slightly harder to implement.

(file #21887)

Additional Item Attachment:

File name: make-3.82-M.diff-Nurd          Size:5 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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