humanai / gyp

Automatically exported from code.google.com/p/gyp
0 stars 0 forks source link

variables set inside a conditional aren't accessible in later stages of the same conditional #80

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Currently the following fails:
'conditions': [
  ['OS=="win", {
     'variables': {'a%': 1},
  }],
  ['a': {
    'variables': {'b': 'hi'},
  }]
]

This may be good as it fits with things being declarative, but it should 
probably be a conscious choice.

Original issue reported on code.google.com by bnels...@gmail.com on 25 Sep 2009 at 11:19

GoogleCodeExporter commented 9 years ago
Too narrow a problem definition.  bradnelson has a more comprehensive 
discussion about variable expansion in 
mind which will encompass this.

Original comment by sgk@chromium.org on 21 Oct 2009 at 6:10