bug-make
[Top][All Lists]
Advanced

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

Re: Bug in make-3.81: variable_buffer moves out from under buffer


From: David Wuertele
Subject: Re: Bug in make-3.81: variable_buffer moves out from under buffer
Date: Tue, 20 Jan 2009 23:07:02 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

Martin Dorey <mdorey <at> bluearc.com> writes:

> In the original makefile, does
> the long rule really not contain any variables or involve any $(eval) 
> trickery?

Not sure what you mean by trickery, but it definitely involves eval and
variables.

The rule is created with an eval:

$(eval $(call somemacro,many,different,arguments,many,many,many))

somemacro calls other macros:

define somemacro

  $(foreach thing,$(filter-out unwanted-stuff,$(wildcard $1/*)),$(call
othermacro,$1,$(thing),$2,$3,and,more,stuff))

endef

othermacro calls yet more functions:

define othermacro

  $(patsubst $1/%.x,$3/.y-%,$2): $3/.y-%: $1/%.x; echo blah blah blah

endef

When I unwind these calls and write the expansion out manually, I invariably
change the order that stuff gets evaluated, which results in variable_buffer
being large enough to avoid triggering the bug.

Dave





reply via email to

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