You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// on web copy libraylib.bc to libraylib.aif platform == Platform::Web{
std::fs::copy(dst_lib.join("libraylib.bc"), dst_lib.join("libraylib.a")).expect("filed to create wasm library");}
But for some reason, on my system (6.1.31-2-MANJARO (64-bit)), with command cargo build --target=wasm32-unknown-emscripten it builds into "libraylib.a".
I suggest doing this:
// on web copy libraylib.bc to libraylib.a (if exists)if platform == Platform::Web{if dst_lib.join("libraylib.bc").exists(){
std::fs::copy(dst_lib.join("libraylib.bc"), dst_lib.join("libraylib.a")).expect("filed to create wasm library");}}
The text was updated successfully, but these errors were encountered:
Hello!
I'm using raylib-rs v3.7.0.
In raylib-sys/build.rs there is this:
But for some reason, on my system (6.1.31-2-MANJARO (64-bit)), with command
cargo build --target=wasm32-unknown-emscripten
it builds into "libraylib.a".I suggest doing this:
The text was updated successfully, but these errors were encountered: