Bug 1304131 - list xpidl.stub as the first output for header.py; r?gps draft
authorMike Shal <mshal@mozilla.com>
Mon, 19 Sep 2016 13:43:39 -0400
changeset 415636 23880f99b668b0ba248b607ec062527ebcc7ea7d
parent 415635 0cacbd11d6afb53be56746fbdf0e39429ccfd3e8
child 531657 a732743a577b0f39120795754e805fae3c7cecb9
push id29921
push userbmo:mshal@mozilla.com
push dateTue, 20 Sep 2016 19:26:52 +0000
reviewersgps
bugs1304131
milestone52.0a1
Bug 1304131 - list xpidl.stub as the first output for header.py; r?gps Since xpidllex.py and xpidlyacc.py are created deep in the other-licenses/ply code, we can't easily pass in our FileAvoidWrite handle from the mozbuild action. As a result, when ply writes out xpidllex.py, the mozbuild action overwrites the contents of the file with a new 0-length xpidllex.py. This causes future xpidl invocations to write out a new xpidllex.py rather than using the pre-built one. MozReview-Commit-ID: NOC1Wr3MZO
xpcom/idl-parser/xpidl/moz.build
--- a/xpcom/idl-parser/xpidl/moz.build
+++ b/xpcom/idl-parser/xpidl/moz.build
@@ -4,20 +4,20 @@
 # License, v. 2.0. If a copy of the MPL was not distributed with this
 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
 
 PYTHON_UNIT_TESTS += [
     'runtests.py',
 ]
 
 GENERATED_FILES += [
-    ('xpidllex.py', 'xpidlyacc.py'),
+    ('xpidl.stub', 'xpidllex.py', 'xpidlyacc.py'),
 ]
 
-GENERATED_FILES[('xpidllex.py', 'xpidlyacc.py')].script = 'header.py:main'
+GENERATED_FILES[('xpidl.stub', 'xpidllex.py', 'xpidlyacc.py')].script = 'header.py:main'
 
 SDK_FILES.bin += [
     '!xpidllex.py',
     '!xpidlyacc.py',
     'header.py',
     'typelib.py',
     'xpidl.py',
 ]