DescriptionIDL parser: fix rebuilding of (stale) cached lexer tables
The PLY lexer caches its table as a Python module (lextab.py). The
cache is loaded by attempting to import the module, which succeeds
if there's a lextab.py{,c,o} anywhere in the Python path. If the
import succeeds, the cache is assumed by PLY to be up-to-date, so
to update the cache, we need to remove those files before calling
PLY to initialize the lexer.
This patch makes blink_idl_lexer.main() do just that. It also
extends blink_idl_parser.main() to call the former, since the GYP
(and GN) build systems only actually call the latter script.
BUG=397909
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=179129
Patch Set 1 #
Total comments: 1
Messages
Total messages: 7 (0 generated)
|