[wasi+browser] bundle timezones into .wasm#82250
Merged
pavelsavara merged 26 commits intodotnet:mainfrom Mar 1, 2023
Merged
Conversation
|
Tagging subscribers to 'arch-wasm': @lewing Issue Detailswork in progress
|
This was referenced Feb 16, 2023
4 tasks
18e709c to
a45ecbf
Compare
pavelsavara
commented
Feb 21, 2023
9c2f6d6 to
3d4cfb7
Compare
37a1350 to
89d4f74
Compare
Member
Author
…nix.NonAndroid.cs Co-authored-by: Ankit Jain <radical@gmail.com>
…fferent asset types
Member
Author
|
@radical do you have further feedback ? |
radical
reviewed
Mar 1, 2023
src/libraries/System.Private.CoreLib/src/System/TimeZoneInfo.Unix.NonAndroid.cs
Show resolved
Hide resolved
src/libraries/System.Private.CoreLib/src/System/TimeZoneInfo.Unix.NonAndroid.cs
Show resolved
Hide resolved
Co-authored-by: Ankit Jain <radical@gmail.com>
radical
reviewed
Mar 1, 2023
Comment on lines
+122
to
+127
| <RunWithEmSdkEnv Command="$(EmccCmd) -xc -c @$(_WasmTimezonesSourcesRsp)" | ||
| WorkingDirectory="$(WasmObjDir)" | ||
| EmSdkPath="$(EMSDK_PATH)" | ||
| ConsoleToMsBuild="true" | ||
| IgnoreStandardErrorWarningFormat="true"> | ||
| </RunWithEmSdkEnv> |
Member
There was a problem hiding this comment.
For a follow up PR, consider using EmccCompile task which compiles in parallel.
maraf
approved these changes
Mar 1, 2023
Member
Author
|
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ilonatommy
approved these changes
Mar 1, 2023
Member
ilonatommy
left a comment
There was a problem hiding this comment.
Looks good, I especially like the description ✨
Member
Author
|
CI failures are unrelated. |
Member
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Motivation
<WasmSingleFileBundle>Changes
browserandwasiOSTZDIRenv variable is setTZDIRis set it would fallback to unix-like file system approach (as before).mono_wasm_get_bundled_fileandmono_wasm_add_bundled_filemono_wasm_add_bundled_fileis called with file names from generatedmono_wasm_register_bundle_timezonesSystemNative_GetTimeZoneDatawhich calls newmono_wasm_get_bundled_file<WasmSingleFileBundle>we also generatemono_wasm_register_bundle_assembliesfor WASIdotnet.timezones.blatfrom runtime packwasm-bundled-timezones.ato workloadsTARGET_BROWSERdetection fornative/libsTZenv variable toUTCas that's not valid timezone anyway. dotnet will fallback to UTC.usr/shareon browser VFS because it's mapped toSpecialFolder.CommonApplicationDatawhich would not exist otherwise.EmitWasmBundleObjectFileas newEmitWasmBundleFilesclanginput stream or to files foremccGenerateTimezonesArchivein both wasi.proj and wasm.projEmitWasmBundleFilesTask_GenerateAssemblyObjectFilesto use newEmitWasmBundleFilestaskfuture work
BlazorEnableTimeZoneSupportwork again,