-
Notifications
You must be signed in to change notification settings - Fork 3.3k
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
Emscripten ports have broken backward compatibility #3144
Comments
True, we should make ports use a version specific to the emscripten version. Will try to get to that today. |
Done. I don't think we'll backport this, but going forward, emscripten versions will use specific ports versions. |
I still suggest to allow developers to configure repository, branch and tag of each port. Should I open it as a separate feature request? |
No need, we can reopen this. Perhaps I didn't fully understand, then. How specifically are you suggesting the user would define those things? |
Dunno exactly. Maybe by specifying some config file as a build option. Something like var Ports = {
SDL2 : {
repo: 'AlisGames',
tag: 'stable', /* or branch: 'stabe' */
}
}
mergeInto(PortManager.ports, Ports); For example you can use this library-like syntax. I'm not sure, that this is the best way. Maybe you can find better solution. |
Perhaps. Let's see what other people think/suggest. |
We use current
latest
version of emscripten (1.27) with SDL2 port (USE_SDL=2
). We have been using cached version of SDL from~/.emscripten_ports
until now. Few days ago we tried to fetch the latest version of SDL port from github by manually clearing cache. Now our project is broken in all browsers.Please, see #3060 and emscripten-ports/SDL2#2. The problem is that emscripten 1.27 still has the old buggy code:
But SDL port relies on latest changes (see emscripten-ports/SDL2@8d47621). So
latest
emscripten 1.27 and master branch of SDL post are not compatible.We don't want to switch to emscripten's master branch, and 1.27 is the latest version available in emsdk. So we had to manually patch emscripten's sources to be compatible with SDL port.
I have 2 suggestion:
Right now we are going to modify local sdl.py. We will use our own sdl port fork to increase stability.
The text was updated successfully, but these errors were encountered: