bug-make
[Top][All Lists]
Advanced

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

[bug #35062] Add lazy evaluation of prerequisites


From: Paul D. Smith
Subject: [bug #35062] Add lazy evaluation of prerequisites
Date: Sat, 17 Dec 2011 15:39:53 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.24) Gecko/20111107 Ubuntu/10.10 (maverick) Firefox/3.6.24

Follow-up Comment #3, bug #35062 (project make):

Well, yes, it would be possible to do something like store the internal
variable database as a kind of "versioned" database, where changes to variable
values do not overwrite previous ones but instead are added on.  Then when a
target is defined it would keep a reference to the state of the variable
database at that time so that all variable references in prerequisite lists
would be expanded in the context of that state, instead of the "current"
(ending) state.  Or something similar.

However functions that referenced "outside influences" like wildcard etc.
could not be duplicated (a wildcard expansion while the makefile is read in
and an expansion well on into the work of building targets could well give
very different results for example).

And my final comment stands: it would be an enormous amount of work.


One possibility would be to use SECONDEXPANSION to avoid the immediate
expansion of prerequisites.  However, today make will secondarily expand all
(explicit) targets, not just targets that are considered during a given run. 
I would be willing to look into an enhancement that deferred secondary
expansion until a target was considered and not secondarily expanding targets
that are not considered.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?35062>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

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