servo: Merge #9817 - Stop generating a parser.out file in the source (from Ms2ger:yacc-log); r=nox

Source-Repo: https://github.com/servo/servo
Source-Revision: b355c0dbcbbbb5155170b4db971e012659081843
This commit is contained in:
Ms2ger 2016-03-02 00:26:02 +05:01
parent 1a1ad99988
commit 8f0aadfb0d
4 changed files with 15 additions and 2 deletions

1
servo/.gitignore vendored
View File

@ -24,5 +24,4 @@
servo-test
Servo.app
.config.mk.last
parser.out
/glfw

View File

@ -6438,7 +6438,8 @@ class Parser(Tokenizer):
self.parser = yacc.yacc(module=self,
outputdir=outputdir,
tabmodule='webidlyacc',
errorlog=logger
errorlog=logger,
debug=False
# Pickling the grammar is a speedup in
# some cases (older Python?) but a
# significant slowdown in others.

View File

@ -0,0 +1,12 @@
--- WebIDL.py
+++ WebIDL.py
@@ -6438,7 +6438,8 @@ class Parser(Tokenizer):
self.parser = yacc.yacc(module=self,
outputdir=outputdir,
tabmodule='webidlyacc',
- errorlog=logger
+ errorlog=logger,
+ debug=False
# Pickling the grammar is a speedup in
# some cases (older Python?) but a
# significant slowdown in others.

View File

@ -1,5 +1,6 @@
wget https://mxr.mozilla.org/mozilla-central/source/dom/bindings/parser/WebIDL.py?raw=1 -O WebIDL.py
patch < abstract.patch
patch < debug.patch
patch < legacy-unenumerable-named-properties.patch
# TODO: update test files from https://dxr.mozilla.org/mozilla-central/source/dom/bindings/parser/tests