Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@zanderso
Copy link
Member

@zanderso zanderso commented Feb 25, 2024

Currently, these scripts run on each invocation of gn, and can take many seconds to run.

This PR shifts them to run as gclient hooks instead, so that gn will be faster.

Needs flutter/buildroot#825.

@flutter-dashboard
Copy link

It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact "@test-exemption-reviewer" in the #hackers channel in Chat (don't just cc them here, they won't see it! Use Discord!).

If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix?

Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing.

DEPS Outdated
Comment on lines 107 to 108
# //build/config/mac/mac_sdk.gni.
'mac_sdk_min': '10.14',
Copy link
Member

Choose a reason for hiding this comment

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

If the min sdk is also declared here, does it also need to be in buildroot? Does //build/config/mac/mac_sdk.gni need to exist?

Copy link
Member Author

Choose a reason for hiding this comment

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

Before this PR and the buildroot PR, this value was in two places. Once in the gn script, and once in mac_sdk.gni. The instance in mac_sdk.gni is unnecessary with some slight rearrangement of the logic in the gn script. The value in the gn script could go away too, if I introduce parsing of the DEPS file into the gn script, but that might be overkill for this PR.

Copy link
Member

Choose a reason for hiding this comment

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

Should "This must match the setting in //build/config/mac/mac_sdk.gni" comment be updated to reference tools/gn, then?

flutter/buildroot@ebc2748#diff-128083755b38060af3a265f785fd4488d7ac6feaad498a1ee0a8b7cdd8e330c3R10

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

@zanderso zanderso force-pushed the run-find-sdk-as-hook branch from 6b1fa3a to a87d189 Compare February 29, 2024 21:55
@zanderso zanderso force-pushed the run-find-sdk-as-hook branch 2 times, most recently from cd5b05e to c24f503 Compare February 29, 2024 22:47
zanderso added a commit to flutter/buildroot that referenced this pull request Feb 29, 2024
@zanderso zanderso force-pushed the run-find-sdk-as-hook branch from c24f503 to d1406d6 Compare February 29, 2024 23:44
DEPS Outdated
Comment on lines 107 to 108
# //build/config/mac/mac_sdk.gni.
'mac_sdk_min': '10.14',
Copy link
Member

Choose a reason for hiding this comment

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

Should "This must match the setting in //build/config/mac/mac_sdk.gni" comment be updated to reference tools/gn, then?

flutter/buildroot@ebc2748#diff-128083755b38060af3a265f785fd4488d7ac6feaad498a1ee0a8b7cdd8e330c3R10

@zanderso zanderso force-pushed the run-find-sdk-as-hook branch from d1406d6 to c72362a Compare March 1, 2024 00:06
@zanderso zanderso merged commit 76140bc into flutter:main Mar 1, 2024
@zanderso zanderso deleted the run-find-sdk-as-hook branch March 1, 2024 02:14
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Mar 1, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants