Bug 1322301 - Add flags to GeneratedFiles in the tup backend; r=chmanchester
authorMike Shal <mshal@mozilla.com>
Tue, 06 Dec 2016 19:35:12 -0500
changeset 325363 6b3b26d63719ceeb45c0219f6fb1eb58af3b49d3
parent 325362 dc7d74a8a4bad3ca3beca17491775bd3e19b829d
child 325364 2c698b01dfe8a2639cb825fdb138baa7fe44c113
push id24
push usermaklebus@msu.edu
push dateTue, 20 Dec 2016 03:11:33 +0000
reviewerschmanchester
bugs1322301
milestone53.0a1
Bug 1322301 - Add flags to GeneratedFiles in the tup backend; r=chmanchester MozReview-Commit-ID: 5N6jm6RMitD
python/mozbuild/mozbuild/backend/tup.py
--- a/python/mozbuild/mozbuild/backend/tup.py
+++ b/python/mozbuild/mozbuild/backend/tup.py
@@ -240,16 +240,17 @@ class TupOnly(CommonBackend, PartialBack
             cmd.extend([
                 obj.script,
                 obj.method,
                 obj.outputs[0],
                 '%s.pp' % obj.outputs[0], # deps file required
             ])
             full_inputs = [f.full_path for f in obj.inputs]
             cmd.extend(full_inputs)
+            cmd.extend(shell_quote(f) for f in obj.flags)
 
             outputs = []
             outputs.extend(obj.outputs)
             outputs.append('%s.pp' % obj.outputs[0])
 
             backend_file.rule(
                 display='python {script}:{method} -> [%o]'.format(script=obj.script, method=obj.method),
                 cmd=cmd,