Skip to content
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

Add workaround for emscripten >= 3.1.47 LTO build #87956

Merged
merged 1 commit into from
Feb 5, 2024

Conversation

adamscott
Copy link
Member

@adamscott adamscott commented Feb 4, 2024

This PR adds a workaround to platform/web/detect.py in order to add -Wl,-u,_emscripten_run_callback_on_thread as a linker flag if the emscripten version is equal or higher than 3.1.47, when building with LTO enabled. It was suggested as a workaround on emscripten-core/emscripten#16836.

I commented and shared my findings here: emscripten-core/emscripten#16836 (comment)

Fixes #87611
Fixes godotengine/godot-docs#8589

@adamscott adamscott requested a review from a team as a code owner February 4, 2024 20:29
@adamscott adamscott added this to the 4.3 milestone Feb 4, 2024
@akien-mga akien-mga added cherrypick:3.x Considered for cherry-picking into a future 3.x release cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Feb 5, 2024
@akien-mga akien-mga merged commit 843c350 into godotengine:master Feb 5, 2024
16 checks passed
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 4.2.2.
Cherry-picked for 4.1.4.

@akien-mga akien-mga removed cherrypick:4.1 Considered for cherry-picking into a future 4.1.x release cherrypick:4.2 Considered for cherry-picking into a future 4.2.x release labels Mar 11, 2024
@akien-mga
Copy link
Member

Cherry-picked for 3.6.
Cherry-picked for 3.5.4.

@akien-mga akien-mga removed cherrypick:3.x Considered for cherry-picking into a future 3.x release cherrypick:3.5 Considered for cherry-picking into a future 3.5.x release labels May 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants