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 325330 6b3b26d63719ceeb45c0219f6fb1eb58af3b49d3
parent 325329 dc7d74a8a4bad3ca3beca17491775bd3e19b829d
child 325331 2c698b01dfe8a2639cb825fdb138baa7fe44c113
push id31051
push usercbook@mozilla.com
push dateThu, 08 Dec 2016 15:15:04 +0000
treeherdermozilla-central@64e024fe4471 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewerschmanchester
bugs1322301
milestone53.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
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,