summaryrefslogtreecommitdiffstats
path: root/misc/ninja_syntax.py
diff options
context:
space:
mode:
authorEvan Martin <martine@danga.com>2013-01-04 17:39:01 (GMT)
committerEvan Martin <martine@danga.com>2013-04-08 21:45:07 (GMT)
commit85a4db7822d1b433eff8cf9f94f8f1dab3f0b23d (patch)
treeb5fbd90896931bb1ffbaedf25739dd2f3e84d2b4 /misc/ninja_syntax.py
parentc683ca7d0d9281ef8fc7cb2c4ec022ebc861b745 (diff)
downloadNinja-85a4db7822d1b433eff8cf9f94f8f1dab3f0b23d.zip
Ninja-85a4db7822d1b433eff8cf9f94f8f1dab3f0b23d.tar.gz
Ninja-85a4db7822d1b433eff8cf9f94f8f1dab3f0b23d.tar.bz2
add "special=gcc" attribute, use to load depslog
Diffstat (limited to 'misc/ninja_syntax.py')
-rw-r--r--misc/ninja_syntax.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/misc/ninja_syntax.py b/misc/ninja_syntax.py
index ece7eb5..519330e 100644
--- a/misc/ninja_syntax.py
+++ b/misc/ninja_syntax.py
@@ -38,7 +38,7 @@ class Writer(object):
def rule(self, name, command, description=None, depfile=None,
generator=False, pool=None, restat=False, rspfile=None,
- rspfile_content=None):
+ rspfile_content=None, special=None):
self._line('rule %s' % name)
self.variable('command', command, indent=1)
if description:
@@ -55,6 +55,8 @@ class Writer(object):
self.variable('rspfile', rspfile, indent=1)
if rspfile_content:
self.variable('rspfile_content', rspfile_content, indent=1)
+ if special:
+ self.variable('special', special, indent=1)
def build(self, outputs, rule, inputs=None, implicit=None, order_only=None,
variables=None):