DescriptionIDL parser: fix rebuilding of (stale) cached parser tables
The yacc parser's tables are cached to improve build performance, and are
rebuilt by running blink_idl_parser.py directly, which simply initializes
the IDL parser and expects PLY (yacc.py) to write the cached tables as a
side-effect.
However, if the file containing the cached tables exists, then PLY will
instead try to load the stale cache. If that succeeds, it will disable
the rewriting, since there's no point in writing to the cache what was
just read from it.
Fix by always deleting the cache file whenever blink_idl_parser.py is
executed directly, before initializing the parser. This way, PLY will not
use cached tables, and will instead write the cache file.
BUG=387631
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176745
Patch Set 1 #
Total comments: 1
Patch Set 2 : add comment #Messages
Total messages: 6 (0 generated)
|