Skip to content

Exclude threading in wasm build. #344

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
May 1, 2025

Conversation

mooinglemur
Copy link
Contributor

When threading is enabled for a WebAssembly app, this is achieved via the SharedArrayBuffer API.

This places additional constraints on the HTTP headers for the web server that serves the resources for the app in order for the app to use threads. If threads are available at SDL_Init(), the SDL subsystem will attempt to create threads for itself, and if the HTTP headers are not set correctly, SDL_Init() fails.

However, we do not need threading support in the wasm build at all, as this support is only necessary if we build in fluidsynth, which is not currently part of the x16-emulator wasm build.

Closes #331

@mooinglemur mooinglemur requested a review from Fulgen301 May 1, 2025 04:57
@Fulgen301 Fulgen301 merged commit 1ba59c8 into X16Community:master May 1, 2025
9 checks passed
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.

Possible wasm regression at commit 555c953
2 participants