Make run_code_generation faster using python3 for auto_script

Only changes the way we get auto_script inputs/outputs.
Before this CL, some of the scripts (depending on the shebang)
are run via vpython3 - which can take a few seconds. But the
inputs/outputs code generally doesn't require any unusual imports, so we
can just add little hacks to suppress those imports where needed when
an argument is given to the script.

Bug: angleproject:8184
Change-Id: Ib09a35b839318253fe7e913e24a756d2cb46dad1
Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4585820
Commit-Queue: Roman Lavrov <romanl@google.com>
Reviewed-by: Shahbaz Youssefi <syoussefi@chromium.org>
This commit is contained in:
Roman Lavrov
2023-06-02 18:09:40 -04:00
committed by Angle LUCI CQ
parent 4ff41604e7
commit e7a9275be2
4 changed files with 16 additions and 13 deletions

View File

@@ -16,7 +16,7 @@
"src/compiler/translator/builtin_variables.json":
"6ed79ceeb34953153925f7e473177321",
"src/compiler/translator/gen_builtin_symbols.py":
"47f8367ef3d100ac752c28146db60815",
"2bcd07edef829c70871d1456d0c89bc5",
"src/compiler/translator/tree_util/BuiltIn_ESSL_autogen.h":
"d6c16bf2d2ea5d02c702585725fd06cb",
"src/compiler/translator/tree_util/BuiltIn_complete_autogen.h":