Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[et] Adds --lto flag to build. Plumbs verbose flag differently. #52021

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

zanderso
Copy link
Member

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.

Copy link
Contributor

@matanlurey matanlurey left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@zanderso zanderso merged commit 43187a8 into flutter:main Apr 10, 2024
26 checks passed
@zanderso zanderso deleted the et-build-no-lto branch April 10, 2024 18:09
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Apr 10, 2024
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Apr 10, 2024
…146605)

flutter/engine@beee02b...91ba235

2024-04-10 zanderso@users.noreply.github.com Adds iOS builds to local_engine.json (flutter/engine#52027)
2024-04-10 skia-flutter-autoroll@skia.org Roll Skia from df6d08abb447 to 91e0c0f4bf41 (3 revisions) (flutter/engine#52026)
2024-04-10 jonahwilliams@google.com [Android] post image task to main handler. (flutter/engine#52025)
2024-04-10 zanderso@users.noreply.github.com [et] Adds --lto flag to build. Plumbs verbose flag differently. (flutter/engine#52021)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
gilnobrega pushed a commit to gilnobrega/flutter that referenced this pull request Apr 22, 2024
…lutter#146605)

flutter/engine@beee02b...91ba235

2024-04-10 zanderso@users.noreply.github.com Adds iOS builds to local_engine.json (flutter/engine#52027)
2024-04-10 skia-flutter-autoroll@skia.org Roll Skia from df6d08abb447 to 91e0c0f4bf41 (3 revisions) (flutter/engine#52026)
2024-04-10 jonahwilliams@google.com [Android] post image task to main handler. (flutter/engine#52025)
2024-04-10 zanderso@users.noreply.github.com [et] Adds --lto flag to build. Plumbs verbose flag differently. (flutter/engine#52021)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-engine-flutter-autoroll
Please CC chinmaygarde@google.com,rmistry@google.com,zra@google.com on the revert to ensure that a human
is aware of the problem.

To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
zanderso added a commit that referenced this pull request Apr 23, 2024
…2339)

#52021 introduced a bug where `ci`
build could only be specified when also passing the `--verbose` flag.
This PR fixes the issue so that by default the `help` message will only
show `ci` builds when `--verbose` is passed to `help`, but the `ci`
builds can be specified even without the `--verbose` flag.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants