Skip to content

Conversation

sbc100
Copy link
Collaborator

@sbc100 sbc100 commented Oct 18, 2025

This setting was recently added in #25581 and it only currently has en effect on pthread-based programs.

It is also not compatible with -sNO_DYNAMIC_EXECUTION because it depends on starting worker based on JS string.

These errors look like this:

$ emcc -sCROSS_ORIGIN -pthread -sDYNAMIC_EXECUTION=0 hello.c
emcc: error: CROSS_ORIGIN is not compatible with DYNAMIC_EXECUTION=0

This setting was recently added in emscripten-core#25581 and it only currently has
en effect on pthread-based programs.

It is also not compatible with `-sNO_DYNAMIC_EXECUTION` because it
depends on starting worker based on JS string.

These errors look like this:

```
$ emcc -sCROSS_ORIGIN -pthread -sDYNAMIC_EXECUTION=0 hello.c
emcc: error: CROSS_ORIGIN is not compatible with DYNAMIC_EXECUTION=0
```
@sbc100 sbc100 requested a review from RReverser October 18, 2025 01:08
@sbc100 sbc100 enabled auto-merge (squash) October 18, 2025 01:15
@sbc100 sbc100 disabled auto-merge October 18, 2025 18:12
@sbc100 sbc100 merged commit d6d3b16 into emscripten-core:main Oct 18, 2025
33 of 34 checks passed
@sbc100 sbc100 deleted the cross_origin_dynamic branch October 18, 2025 18:12
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