Skip to content

Conversation

@brendandahl
Copy link
Collaborator

Update tools/link.py to respect EXPECT_MAIN when adding main to EXPORT_IF_DEFINED in assertion builds. This prevents main from being force-exported when the user explicitly requests no entry point.

Fixes #26047

Update tools/link.py to respect EXPECT_MAIN when adding main to EXPORT_IF_DEFINED in assertion builds. This prevents main from being force-exported when the user explicitly requests no entry point.

Fixes emscripten-core#26047
This is an automatic change generated by tools/maint/rebaseline_tests.py.

The following (1) test expectation files were updated by
running the tests with `--rebaseline`:

```
codesize/test_codesize_minimal_O0.json: 20629 => 20629 [+0 bytes / +0.00%]

Average change: +0.00% (+0.00% - +0.00%)
```
@sbc100
Copy link
Collaborator

sbc100 commented Jan 9, 2026

Looks like a couple of valid test failures... maybe hard to resolve them?

correctly distinguishes between 'user explicitly wants no entry' and
'user might have forgotten to export main'.
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.

--no-entry is ignored when -sASSERTIONS is enabled

2 participants