From cf21b475addd3ccac6465cd84c7c420381e5f588 Mon Sep 17 00:00:00 2001 From: Jack Lavigne Date: Mon, 18 Nov 2024 11:08:05 +0100 Subject: [PATCH] fix: add missing rustflags --- .cargo/config.toml | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/.cargo/config.toml b/.cargo/config.toml index 680df42..d3787f7 100644 --- a/.cargo/config.toml +++ b/.cargo/config.toml @@ -1,10 +1,23 @@ [target.wasm32-wasi] rustflags = [ + "-Ctarget-feature=-crt-static,+bulk-memory", + "-Clink-self-contained=no", + "-Clink-arg=-l", + "-Clink-arg=c", + "-Clink-arg=/workdir/MSFS_SDK/WASM/wasi-sysroot/lib/wasm32-wasi/libclang_rt.builtins-wasm32.a", + "-Clink-arg=-L", + "-Clink-arg=/workdir/MSFS_SDK/WASM/wasi-sysroot/lib/wasm32-wasi", "-Clink-arg=--export-table", + "-Clink-arg=--allow-undefined", + "-Clink-arg=--export-dynamic", + "-Clink-arg=--export=__wasm_call_ctors", "-Clink-arg=--export=malloc", "-Clink-arg=--export=free", - "-Clink-arg=-L/usr/lib/llvm-15/lib/clang/15.0.7/lib/wasi", - "-Clink-arg=-lclang_rt.builtins-wasm32", + "-Clink-arg=--export=mark_decommit_pages", + "-Clink-arg=--export=mallinfo", + "-Clink-arg=--export=mchunkit_begin", + "-Clink-arg=--export=mchunkit_next", + "-Clink-arg=--export=get_pages_state", ] [build]