We have threaded build system and starts multiple emcc process, if SDL2 hasn't been compiled before, all emcc processes try to compile SDL2, with many processes ultimately failing.
I think auto compile is not entirely a good option, maybe let emcc download prebuilt .a's SDL2 on demand and limit emscripten ports to prebuilt .a's and header files.
We have threaded build system and starts multiple emcc process, if SDL2 hasn't been compiled before, all emcc processes try to compile SDL2, with many processes ultimately failing.
I think auto compile is not entirely a good option, maybe let emcc download prebuilt .a's SDL2 on demand and limit emscripten ports to prebuilt .a's and header files.