mirror of
https://github.com/ninja-build/ninja.git
synced 2026-08-08 17:11:55 +00:00
ninja_syntax: add restat attribute to rules
Patch from Ami Fischman <fischman@chromium.org>.
This commit is contained in:
@@ -33,7 +33,7 @@ class Writer(object):
|
||||
self._line('%s = %s' % (key, value), indent)
|
||||
|
||||
def rule(self, name, command, description=None, depfile=None,
|
||||
generator=False):
|
||||
generator=False, restat=False):
|
||||
self._line('rule %s' % name)
|
||||
self.variable('command', command, indent=1)
|
||||
if description:
|
||||
@@ -42,6 +42,8 @@ class Writer(object):
|
||||
self.variable('depfile', depfile, indent=1)
|
||||
if generator:
|
||||
self.variable('generator', '1', indent=1)
|
||||
if restat:
|
||||
self.variable('restat', '1', indent=1)
|
||||
|
||||
def build(self, outputs, rule, inputs=None, implicit=None, order_only=None,
|
||||
variables=None):
|
||||
|
||||
Reference in New Issue
Block a user