Skip to content

fix: Update WebGL 4GB support with enhanced uno-config.js environment variable checks - #1064

Merged
jeromelaban merged 1 commit into
mainfrom
dev/jela/4gb-fix
Jun 8, 2026
Merged

jeromelaban merged 1 commit into
mainfrom
dev/jela/4gb-fix

Conversation

@jeromelaban

Copy link
Copy Markdown
Member

No description provided.

Copilot AI review requested due to automatic review settings June 8, 2026 14:06

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes 4GB WebAssembly/WebGL support by ensuring Emscripten linker flags are correctly forwarded into ShellTask_v0, restoring detection of -s MAXIMUM_MEMORY=4GB so the bootstrap can expose the heap ceiling to the hosted app via uno-config.js.

Changes:

  • Updates MSBuild wiring to pass EmccFlags as a property value into ShellTask_v0 (instead of an empty item list), enabling correct 4GB flag detection.
  • Extends the WebGL 4GB test script to validate that uno-config.js includes (and omits when gated off) UNO_BOOTSTRAP_EMSCRIPTEN_MAXIMUM_MEMORY=4GB.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 2 comments.

File Description
src/Uno.Wasm.Tests.WebGL4Gb/test-webgl-4gb.sh Adds assertions verifying uno-config.js exposes (and gates) the 4GB maximum memory environment variable.
src/Uno.Wasm.Bootstrap/build/Uno.Wasm.Bootstrap.targets Fixes EmccFlags forwarding to ShellTask_v0 by passing the property value rather than an item list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@github-actions

github-actions Bot commented Jun 8, 2026

Copy link
Copy Markdown

@jeromelaban
jeromelaban merged commit a73ee08 into main Jun 8, 2026
14 checks passed
@jeromelaban
jeromelaban deleted the dev/jela/4gb-fix branch June 8, 2026 15:08
@jeromelaban
jeromelaban restored the dev/jela/4gb-fix branch June 8, 2026 16:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants