Skip to content

Commit

Permalink
Add missing rustflags
Browse files Browse the repository at this point in the history
With these flags, we can properly export to HTML!
  • Loading branch information
scroggo committed Nov 29, 2024
1 parent 4a85db0 commit 6264445
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion rust/.cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ rustflags = [
"-C", "link-args=-sSIDE_MODULE=2",
"-C", "link-args=-pthread", # was -sUSE_PTHREADS=1 in earlier emscripten versions
"-C", "target-feature=+atomics,+bulk-memory,+mutable-globals",
"-Zlink-native-libraries=no"
"-Zlink-native-libraries=no",
"-Clink-arg=-fwasm-exceptions",
"-Clink-args=-sDISABLE_EXCEPTION_CATCHING=1",
"-Clink-args=-sEXPORT_ALL=1",
"-Clink-args=-sSUPPORT_LONGJMP=wasm",
"-Cllvm-args=-enable-emscripten-cxx-exceptions=0",
"-Cllvm-args=-wasm-enable-sjlj",
]

0 comments on commit 6264445

Please sign in to comment.