Chromium Code Reviews| Index: pylib/gyp/__init__.py |
| diff --git a/pylib/gyp/__init__.py b/pylib/gyp/__init__.py |
| index b10d97a93bd0d57c847b4b52d6857dc3ed0a1243..7b4c5c319bd83d1670e80d1192718f5ae2b5a92a 100755 |
| --- a/pylib/gyp/__init__.py |
| +++ b/pylib/gyp/__init__.py |
| @@ -62,6 +62,7 @@ def Load(build_files, format, default_variables={}, |
| flavor = None |
| if '-' in format: |
| format, params['flavor'] = format.split('-', 1) |
| + flavor = params['flavor'] |
|
justincohen
2015/03/16 15:12:24
is it necessary to pull this out into a new variab
sdefresne
2015/03/16 15:47:05
The variable already existed (see above) but was n
sdefresne
2015/03/16 15:49:00
Done.
|
| default_variables = copy.copy(default_variables) |
| @@ -69,6 +70,7 @@ def Load(build_files, format, default_variables={}, |
| # named WITH_CAPITAL_LETTERS to provide a distinct "best practice" namespace, |
| # avoiding collisions with user and automatic variables. |
| default_variables['GENERATOR'] = format |
| + default_variables['GENERATOR_FLAVOR'] = flavor or "" |
| # Format can be a custom python file, or by default the name of a module |
| # within gyp.generator. |