DescriptionAvoid infinite recursion with identity variables.
Some generators like gypd and gypsh define the generator_default_variables
as an identity expansion. For example, the variable 'INTERMEDIATE_DIR'
would expand to '<(INTERMEDIATE_DIR)' which lends to an infinite recursion
if a .gyp file uses any of those variables.
This patch detects trivial infinite recursive variable expansions like
this one and leaves them that way.
BUG=gyp:141
TEST=`gyp --debug=variables --format=gypd test.gyp` shows avoiding
infinite recursion message when test.gyp has an INTERMEDIATE_DIR
variable expansion.
Patch Set 1 #
Messages
Total messages: 7 (0 generated)
|