emscripten-core / emscripten

Emscripten: An LLVM-to-WebAssembly Compiler
Other
25.37k stars 3.25k forks source link

Preserve system library ordering even under EMCC_FORCE_STDLIBS=1 #22171

Closed sbc100 closed 3 days ago

sbc100 commented 3 days ago

In particular EMCC_FORCE_STDLIBS=1 would previously place libc before libbulkmemory which don't work. libbulkmemory always needs to come first on the link line.

Fixes: #22161

Faless commented 3 days ago

Thank you so much :blue_heart: , I tested the PR, and confirmed it fixes Godot nothreads+dlink builds.