| Index: pylib/gyp/generator/ninja.py
|
| diff --git a/pylib/gyp/generator/ninja.py b/pylib/gyp/generator/ninja.py
|
| index a3311c28ca1504a7401efd2cbb8de3299094f5c5..bd1e1698fdbc66468999314a18f9db327660352f 100644
|
| --- a/pylib/gyp/generator/ninja.py
|
| +++ b/pylib/gyp/generator/ninja.py
|
| @@ -543,6 +543,9 @@ class NinjaWriter:
|
| for rule in rules:
|
| # First write out a rule for the rule action.
|
| name = rule['rule_name']
|
| + # Skip a rule with no action and no inputs.
|
| + if 'action' not in rule and not rule.get('rule_sources', []):
|
| + continue
|
| args = rule['action']
|
| description = self.GenerateDescription(
|
| 'RULE',
|
|
|