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

Conversation

@zanderso
Copy link
Member

This is needed to use arm64 macs in CI, and for the reasons noted in the comment.

@zanderso
Copy link
Member Author

cc @godofredoc

@zanderso zanderso requested review from cbracken and jmagman January 31, 2023 15:28
Copy link
Member

@jmagman jmagman left a comment

Choose a reason for hiding this comment

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

LGTM in theory, @cbracken should have the deciding review though.

# for macOS (see the logic below), pass the flag "--mac-cpu arm64".
# https://github.com/flutter/flutter/issues/103386 is also relevant here.
if get_host_os() == 'mac' and not args.mac_cpu == 'arm64':
gn_args['host_cpu'] = 'x64'
Copy link
Member

Choose a reason for hiding this comment

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

Haven't I already covered this for host builds in lines 356-360?

Copy link
Member Author

Choose a reason for hiding this comment

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

I simplified the logic, and with the simpler logic, hopefully the comment makes more sense now. PTAL.

Copy link
Member

Choose a reason for hiding this comment

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

Looks good. Thanks!

Copy link
Member

@cbracken cbracken left a comment

Choose a reason for hiding this comment

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

LGTM stamp from a Japanese personal seal

@zanderso zanderso merged commit 0de70db into flutter:main Feb 1, 2023
@zanderso zanderso deleted the mac-host-cpu-x64 branch February 1, 2023 15:41
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Feb 1, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Feb 1, 2023
…119741)

* 30ba71efa Roll Skia from 8f33da33edcf to 4b5799677173 (1 revision) (flutter/engine#39318)

* 0de70dbe5 Use the x64 toolchain when building host artifacts on arm64 mac (flutter/engine#39279)

* 4fc0a0297 Update README.md (flutter/engine#39319)

* bae377499 Roll Skia from 4b5799677173 to 86f7b2dd2b4f (8 revisions) (flutter/engine#39320)

* ba3adb74d Roll Dart SDK from 88d1f3ffa266 to b47964e5d575 (1 revision) (flutter/engine#39321)
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