mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Addresses the notes I left on https://github.com/flutter/engine/pull/51868. Mainly fixes an issue in which the `build`, `query`, and `test` commands would fail if GN had not yet been run for the requested configuration. Instead, in this PR, if the build output directory doesn't exist yet, then it will run GN before querying the targets. Additionally, for the `build` command, if no targets are specified on the command line, the PR uses the targets in the build config as the default rather than all targets. `query` and `test` keep the same behavior.