Uh oh!
There was an error while loading. Please reload this page.
[wasi+browser] bundle timezones into .wasm - #82250
Conversation
ghost
commented
Feb 16, 2023
Tagging subscribers to 'arch-wasm': @lewing Issue Detailswork in progress
|
18e709c to
a45ecbfCompareUh oh!
There was an error while loading. Please reload this page.
9c2f6d6 to
3d4cfb7Compare37a1350 to
89d4f74Compare…nix.NonAndroid.cs Co-authored-by: Ankit Jain <radical@gmail.com>
…fferent asset types
pavelsavara
commented
Feb 28, 2023
@radical do you have further feedback ? |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Co-authored-by: Ankit Jain <radical@gmail.com>
| <RunWithEmSdkEnv Command="$(EmccCmd) -xc -c @$(_WasmTimezonesSourcesRsp)" | ||
| WorkingDirectory="$(WasmObjDir)" | ||
| EmSdkPath="$(EMSDK_PATH)" | ||
| ConsoleToMsBuild="true" | ||
| IgnoreStandardErrorWarningFormat="true"> | ||
| </RunWithEmSdkEnv> |
There was a problem hiding this comment.
For a follow up PR, consider using EmccCompile task which compiles in parallel.
pavelsavara
commented
Mar 1, 2023
/azp run runtime-wasm |
|
Azure Pipelines successfully started running 1 pipeline(s). |
ilonatommy
left a comment
There was a problem hiding this comment.
Looks good, I especially like the description ✨
Uh oh!
There was an error while loading. Please reload this page.
pavelsavara
commented
Mar 1, 2023
CI failures are unrelated. |

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,