Skip to content

Commit

Permalink
fix: add missing rustflags
Browse files Browse the repository at this point in the history
  • Loading branch information
pepperoni505 committed Nov 18, 2024
1 parent 42db948 commit cf21b47
Showing 1 changed file with 15 additions and 2 deletions.
17 changes: 15 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -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]
Expand Down

0 comments on commit cf21b47

Please sign in to comment.