-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[build] Breaking changes in emscripten 3.1.51
#3713
Comments
Related: |
This page here says:
It seems like the correct solution may just be to delete this code completely, and not call rlLoadExtensions on PLATFORM_WEB? |
I tried commenting out the call - things seemed to work "as normal", but I'm not sure if it could have any bad effects. At the very least, I think this confirms that it doesn't matter if glfwGetProcAddress is called or not, and the function should be reviewed not to do so. |
@Peter0x44 Thanks for reporting! This is really a breaking change, I need to think what's the best way to address it and somewhat keep compatibility with older Emscripten versions... |
@raysan5 as far as I can tell there's no breaking change if the code is refactored in a way that glfwGetProcAddress doesn't get called. It shouldn't be necessary to call it at all, and it's recommended not to for performance reasons. |
@Peter0x44 Oh, is it neither required if using old Emscripten versions? |
The advice saying not to use it is 8 years old, so I assume it's okay. There's no actual code behavior change here, only what was allowed by default before now requires an extra linker flag. |
FYI: https://github.com/emscripten-core/emscripten/blob/main/tools/settings.py#L106 Edit: Although I don't use Edit 2: Just to not leave |
Added required flag in Makefiles in ea31bd4 EDIT: Properly reviewing |
UPDATE: Adding
|
emscripten 3.1.51
It seems this issue has been already addressed at Emscripten side: emscripten-core/emscripten#20798 |
Currently, attempting to build the examples for web leads to the following error:
This is because of the following breaking change in emscripten:
that is documented here:
https://github.com/emscripten-core/emscripten/blob/main/ChangeLog.md#3151---121323
This change was introduced for emscripten 3.1.51.
The call to glfwGetProcAddress is located here:
raylib/src/platforms/rcore_web.c
Line 1236 in be0ea89
So, either platforms/rcore_web.c needs to be reviewed not to call glfwGetProcAddress, or adding the flag to compile commands needs to be documented. I'm not really sure which, so I'm opening this issue, so I can get input from others, and we can research together.
The text was updated successfully, but these errors were encountered: