Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wasm] Improve AOT builds #48718

Closed
wants to merge 5 commits into from
Closed

Conversation

radical
Copy link
Member

@radical radical commented Feb 24, 2021

  • Improve build messages for AOT
  • For cases that don't generate an app bundle, avoid copying unnecessary files
  • Quote file paths for emcc invocations, to work better with paths containing spaces

- The reason for this change is that generating the app bundle is
  optional now. Eg. in case of blazor, which handles the layout itself.

- In that case, the assemblies will be used for other things during
  `WasmBuildApp` target (eg. AOT).
  - Change the name to reflect that
This was added earlier to support blazor workload which only uses AOT.
But that has since been fixed to correctly use
`WasmBuildApp`+`@(WasmNativeAsset)`, so this can be removed.
This fixes emcc invocations with paths that have spaces (common on
windows!).
@ghost
Copy link

ghost commented Feb 24, 2021

Tagging subscribers to this area: @directhex
See info in area-owners.md if you want to be subscribed.

Issue Details
  • Improve build messages for AOT
  • For cases that don't generate an app bundle, avoid copying unnecessary files
  • Quote file paths for emcc invocations, to work better with paths containing spaces
Author: radical
Assignees: -
Labels:

area-Infrastructure-mono

Milestone: -

@radical
Copy link
Member Author

radical commented Feb 24, 2021

This extracts changes from #48500 except the assembly skipping part.

@@ -12,24 +12,24 @@ various properties before the target `WasmBuildApp` gets executed.
to do that.

- By default, the `WasmLoadAssembliesAndReferences` task is not run, and
the specified `@(WasmAssembliesToBundle)` are directly passed to
the specified `@(WasmAssembly)` are directly passed to
Copy link
Contributor

Choose a reason for hiding this comment

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

WasmAOTAssembly? WasmAssembly feels very non-specific.

Copy link
Member

Choose a reason for hiding this comment

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

they are not AOT specific

Co-authored-by: Pranav K <prkrishn@hotmail.com>
@radical radical closed this Feb 25, 2021
@radical radical deleted the aot-improve-build branch February 25, 2021 04:14
@ghost ghost locked as resolved and limited conversation to collaborators Mar 27, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants