mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
This PR does two things. First, in many of the `ci` builds, LTO is enabled by default. This is usually not what we want when doing local builds, so this PR adds an `--lto` flag to the `build` command which is disabled by default, causing `--no-lto` to be passed to GN. When `--lto` is passed to the `build` command, `--lto` is passed to GN, which results in the build using LTO. Second, this PR eagerly parses the `--verbose` flag out of the command line so that help messages can optionally show less information. In particular, in this PR, `ci` and `web_test` builds are only displayed by `help build` when `--verbose` is passed to the `help` command. There's some extra text in the help message as well indicating that passing `--verbose` to `help` will show more builds.