Open kassane opened 2 months ago
Hmm good to know but strange, I would actually have expected that MUSL is the correct C library to use (since Emscripten is also using MUSL).
This is probably because zig ensures its self-dependencies by default. Unlike other toolchains (ldc2, rustc, ...) that depend on emscripten libc.
During the tests I had no complications in running the applications, only the warnings issued. (same target data-layout)
Actually Zig isn't enabling LTO on release targets ( wasm32 in particular). Enabling it manually gives this warning during linking.
Similar issue in
sokol-d
: https://github.com/kassane/sokol-d/issues/3#issuecomment-2351602235How to fix?
Replace
wasm32-emscripten
(default is musl) towasm32-emscripten-none
!