commit | 80fc195e358a94b7ff335813ac4852b669a89c87 | [log] [tgz] |
---|---|---|
author | Takuto Ikuta <tikuta@chromium.org> | Thu Jun 01 21:38:30 2023 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Jun 01 22:02:12 2023 |
tree | df5a22355b9ccb1e1905d8caa57de74b8a35daf2 | |
parent | 59c083b540fe022c9b74d943f65e7d877b7ddff2 [diff] |
tools: remove `USE_PYTHON3 = True` from PRESUBMIT.py presubmit now uses python3 only. This is generated by $ rg -l '^USE_PYTHON3 = True' | \ xargs sed -z -i "s/\n*USE_PYTHON3 = True\n*/\n\n\n/" with some more modifications. This also removes run_on_python2, run_on_python3, and skip_shebang_check args. Bug: 1207012 Change-Id: I43ac77120dc2456bc065a41750f1f5ddfd88d9e5 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4576841 Commit-Queue: Takuto Ikuta <tikuta@chromium.org> Reviewed-by: Bruce Dawson <brucedawson@chromium.org> Auto-Submit: Takuto Ikuta <tikuta@chromium.org> Cr-Commit-Position: refs/heads/main@{#1152146} NOKEYCHECK=True GitOrigin-RevId: e108f10dfc017ddc158a453b2aa44a5fb7a18674
MB is a simple wrapper around the GN build tool.
It was originally written as part of the GYP->GN migration, in order to provide a uniform interface to either GYP or GN, such that users and bots can call one script and not need to worry about whether a given bot was meant to use GN or GYP.
It eventually grew additional functionality and is now still used even though everything is GN-only.
It supports two main functions:
“gen” - the main gn gen
invocation that generates the Ninja files needed for the build.
“analyze” - the step that takes a list of modified files and a list of desired targets and reports which targets will need to be rebuilt.
We also use MB as a forcing function to collect all of the different build configurations that we actually support for Chromium builds into one place, in //tools/mb/mb_config.pyl
.
For more information, see: