Skip to content

emscripten: fix undefined symbol errors in non-threaded builds#5773

Merged
slouken merged 2 commits intolibsdl-org:mainfrom
Daft-Freak:em-proxy-fix
Jun 8, 2022
Merged

emscripten: fix undefined symbol errors in non-threaded builds#5773
slouken merged 2 commits intolibsdl-org:mainfrom
Daft-Freak:em-proxy-fix

Conversation

@Daft-Freak
Copy link
Copy Markdown
Collaborator

Description

Changes the framebuffer/cursor proxying code to use MAIN_THREAD_EM_ASM instead of emscripten_sync_run_in_main_runtime_thread with a function wrapping the EM_ASM. This is how everything else was handled.

Fixes this error
error: undefined symbol: emscripten_sync_run_in_main_runtime_thread_
caused by the proxying changes (caught while trying to update Emscripten to the latest release(emscripten-core/emscripten#16916)).

This is how everything else was handled and fixes undefined symbol
errors in non-threads builds.
@madebr
Copy link
Copy Markdown
Contributor

madebr commented Jun 8, 2022

Can you remove this line so we test building an application on ci?

if: ${{ false }} # FIXME: cmake/test/CMakeLists.txt should support emscripten

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