Skip to content

Always link desktop platforms#44753

Merged
jonahwilliams merged 3 commits intoflutter:masterfrom
jonahwilliams:always_link_desktop
Nov 12, 2019
Merged

Always link desktop platforms#44753
jonahwilliams merged 3 commits intoflutter:masterfrom
jonahwilliams:always_link_desktop

Conversation

@jonahwilliams
Copy link
Contributor

Description

The desktop shells are not correctly loading the prebuilt core snapshots. This requires the platform to be linked in order to work in debug mode.

See #44724

@fluttergithubbot fluttergithubbot added the tool Affects the "flutter" command-line tool. See also t: labels. label Nov 12, 2019
// Force linking of the platform for desktop embedder targets since these
// do not correctly load the core snapshots in debug mode.
// See https://github.com/flutter/flutter/issues/44724
bool forceLinkPlatform;
Copy link
Member

Choose a reason for hiding this comment

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

bool forceLinkPlatform = false or set to false in the default case of the switch.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

await const KernelSnapshot().build(androidEnvironment
..defines[kTargetPlatform] = 'darwin-x64'
..defines[kBuildMode] = 'debug'
);
Copy link
Member

Choose a reason for hiding this comment

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

This test doesn't look like it's testing anything.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Hidden on line 226

Copy link
Contributor

@alexmarkov alexmarkov left a comment

Choose a reason for hiding this comment

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

LGTM assuming it's a temporary workaround.

Copy link
Member

@zanderso zanderso left a comment

Choose a reason for hiding this comment

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

lgtm.

@jonahwilliams jonahwilliams merged commit 3383b56 into flutter:master Nov 12, 2019
@jonahwilliams jonahwilliams deleted the always_link_desktop branch November 12, 2019 23:24
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 3, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants