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

Web sdk build reland #36851

Merged
merged 5 commits into from
Oct 20, 2022
Merged

Conversation

eyebrowsoffire
Copy link
Contributor

Trying to reland #36520

A few things that are different:

  • Addressed some comments from @zanderso
  • You can now use felt build --host to do the old host build, in case you want to run with --local-engine before we've made the changes to the flutter tool to support --local-engine from the wasm build.
  • Changed how we do --multi-root in order to avoid accidentally pulling in any stuff from copied or built dart-sdk for the web sdk.

There were some issues with the google3 roll so I need to do a little more investigation to make sure I'm not breaking anything there before I land this.

@eyebrowsoffire eyebrowsoffire added the Work in progress (WIP) Not ready (yet) for review! label Oct 18, 2022
@flutter-dashboard flutter-dashboard bot added the platform-web Code specifically for the web engine label Oct 18, 2022
@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 Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on 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.

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.

gn lgtm w/ nit

@@ -22,6 +22,9 @@ declare_args() {

# Whether to use a prebuilt Dart SDK instead of building one.
flutter_prebuilt_dart_sdk = false

# Whether to build the flutter web sdk outline/DDC artifacts.
build_flutter_web_sdk = false
Copy link
Member

Choose a reason for hiding this comment

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

Following suit would make this flutter_build_web_sdk.

Copy link
Contributor

@mdebbar mdebbar left a comment

Choose a reason for hiding this comment

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

LGTM and thanks for adding the --host argument!

Comment on lines +30 to +33
argParser.addFlag(
'host',
help: 'Build the host build instead of the wasm build, which is currently'
'needed for `flutter run --local-engine` to work'
Copy link
Contributor

Choose a reason for hiding this comment

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

❤️

@mdebbar
Copy link
Contributor

mdebbar commented Oct 20, 2022

@eyebrowsoffire Would it be possible to copy the flutter_web_sdk/libraries.json file to flutter_web_sdk/dart-sdk/libraries.json as part of the build?

This is needed for the flutter tool to work properly. For some reason, the compiler expects the libraries.json file to be under a directory called dart-sdk.

@eyebrowsoffire eyebrowsoffire added autosubmit Merge PR when tree becomes green via auto submit App and removed Work in progress (WIP) Not ready (yet) for review! labels Oct 20, 2022
@auto-submit auto-submit bot merged commit 2b21a31 into flutter:main Oct 20, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Oct 20, 2022
@a-siva
Copy link
Contributor

a-siva commented Oct 21, 2022

Can this PR be reverted it appears to cause the Flutter HHH bot to fail, see https://logs.chromium.org/logs/dart/buildbucket/cr-buildbucket/8799750296394481121/+/u/gn_--full-dart-sdk_--no-prebuilt-dart-sdk/stdout

Also see flutter/flutter#113772 for the tracking issue.

@eyebrowsoffire
Copy link
Contributor Author

We have merged a roll-forward fix: #36926

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App needs tests platform-web Code specifically for the web engine
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants