Bug 1135984 - Avoid setting an empty GYP_DIRS in contexts when reading it. r=gps

This commit is contained in:
Mike Hommey 2015-02-23 15:39:19 +09:00
parent 2d2671768b
commit cfc21d63d7

View File

@ -977,7 +977,7 @@ class BuildReader(object):
curdir = mozpath.dirname(path)
gyp_contexts = []
for target_dir in context['GYP_DIRS']:
for target_dir in context.get('GYP_DIRS', []):
gyp_dir = context['GYP_DIRS'][target_dir]
for v in ('input', 'variables'):
if not getattr(gyp_dir, v):