From d00a61b7be7e5f235540c2bc7a0ce0298cf445d7 Mon Sep 17 00:00:00 2001 From: pillowtrucker Date: Tue, 23 Jan 2024 23:05:50 +0100 Subject: [PATCH] really last attempt --- .cargo/config.toml | 21 ++++++++++++++++++++- brainworms_farting_noises/libymfm.wasm | 2 +- 2 files changed, 21 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 9763bb9..7d24d02 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,7 +1,26 @@ # Required to avoid a linker error on Windows when building the dylib. [target.x86_64-pc-windows-msvc] linker = "rust-lld.exe" - +rustflags = ["-lntdll","-lucrtd"] # Uncomment this to enable unstable APIs in web_sys when targetting wasm. #[target.'cfg(target_family = "wasm")'] #rustflags = "--cfg=web_sys_unstable_apis" +[target.x86_64-unknown-linux-gnu] +rustflags = [ + "-lstdc++" +] +[target.x86_64-apple-darwin] +rustflags = [ + "-lstdc++", + "-lc++abi", + "-lc++" +] +linker = "rust-lld" + +[target.aarch64-apple-darwin] +rustflags = [ + "-lstdc++", + "-lc++abi", + "-lc++" +] +linker = "rust-lld" diff --git a/brainworms_farting_noises/libymfm.wasm b/brainworms_farting_noises/libymfm.wasm index ce914a8..f4ffb4f 160000 --- a/brainworms_farting_noises/libymfm.wasm +++ b/brainworms_farting_noises/libymfm.wasm @@ -1 +1 @@ -Subproject commit ce914a897d310b9cf2ebe362ab0f5482510e0719 +Subproject commit f4ffb4f00c698d3457f1737af23ce64a213bea3c