diff options
Diffstat (limited to 'misc/ninja_syntax.py')
-rw-r--r-- | misc/ninja_syntax.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/misc/ninja_syntax.py b/misc/ninja_syntax.py index ba7b55b..aa7e124 100644 --- a/misc/ninja_syntax.py +++ b/misc/ninja_syntax.py @@ -22,6 +22,10 @@ class Writer(object): self.output.write('# ' + line + '\n') def variable(self, key, value, indent=0): + if value is None: + return + if isinstance(value, list): + value = ' '.join(value) self._line('%s = %s' % (key, value), indent) def rule(self, name, command, description=None, depfile=None): |