Skip to content

Conversation

@MPurscheUnity
Copy link
Collaborator

This PR backports the fix emscripten-core#19352 from emscripten-core to our version of emscripten. This is done to fix the Unity bug: UUM-74261

Description from the original PR:

The change to test_only_force_stdlibs was needed because the failure case is now a build time rather than runtime error.

Using -sWARN_ON_UNDEFINED_SYMBOLS=0 (which implicitly sets ERROR_ON_UNDEFINED_SYMBOLS=0 too) cannot prevent/delay errors when certain types of symbols are missing. For example the linker will always error on missing data symbols. After this change the linker will also always error on missing revert dependencies (of which malloc is one in this test case).

Fixes: emscripten-core#19234

…re#19352)

The change to `test_only_force_stdlibs` was needed because the failure
case is now a build time rather than runtime error.

Using `-sWARN_ON_UNDEFINED_SYMBOLS=0` (which implicitly sets
`ERROR_ON_UNDEFINED_SYMBOLS=0` too) cannot prevent/delay errors when
certain types of symbols are missing.  For example the linker will
always error on missing data symbols.  After this change the linker
will also always error on missing revert dependencies (of which malloc
is one in this test case).

Fixes: emscripten-core#19234
@MPurscheUnity MPurscheUnity merged commit 5196ed9 into 3.1.38.1-unity Jun 24, 2024
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.

3 participants