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

Use a prebuilt Dart SDK during Fuchsia builds#29680

Merged
zanderso merged 1 commit intoflutter:masterfrom
zanderso:fix-fuchsia-xbuild
Nov 11, 2021
Merged

Use a prebuilt Dart SDK during Fuchsia builds#29680
zanderso merged 1 commit intoflutter:masterfrom
zanderso:fix-fuchsia-xbuild

Conversation

@zanderso
Copy link
Member

@zanderso zanderso commented Nov 11, 2021

Fuchsia is an unusual target because we need to build the "engine artifacts", and there is a prebuilt Dart SDK for the host (mac, linuix), but no prebuilt Dart SDK for the target (fuchsia). In order to use the prebuilt Dart SDK for the host, which we need to make snapshot building go faster, this PR teaches the GN build that the prebuilt Dart SDK for the host and target can be for different OSes as well as for a different CPU architectures.

This brings the Fuchsia arm64 build down to ~2 minutes from ~15 minutes on CI, and unblocks building/running more Fuchsia tests.

In the future, if we need a prebuilt Dart SDK to target Fuchsia, we should follow the same pattern as for other platforms, and consume one vended by Dart infrastructure.

Fixes flutter/flutter#93084

@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Nov 11, 2021
@google-cla google-cla bot added the cla: yes label Nov 11, 2021
Copy link
Contributor

@dnfield dnfield left a comment

Choose a reason for hiding this comment

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

Nice, LGTM

@akbiggs @arbreng FYI

@zanderso zanderso merged commit e022c92 into flutter:master Nov 11, 2021
@zanderso zanderso deleted the fix-fuchsia-xbuild branch November 11, 2021 21:24
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 11, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

cla: yes platform-web Code specifically for the web engine

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Building fuchsia_debug_arm64 slow after https://github.com/flutter/engine/pull/28361

2 participants