Skip to content

Commit 8e10eda

Browse files
committed
Sync .cargo/config.toml with book "Web export" chapter
Adds this argument: -Cllvm-args=-enable-emscripten-cxx-exceptions=0
1 parent d9ed4ad commit 8e10eda

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
1+
# Users: see https://godot-rust.github.io/book/toolchain/export-web.html for details.
2+
13
# The cargo flag "-Zbuild-std" is also required but this cannot yet be specified for specific
24
# targets: https://github.com/rust-lang/cargo/issues/8733
35
[target.wasm32-unknown-emscripten]
46
rustflags = [
7+
"-C", "link-args=-pthread", # assumes threads enabled.
58
"-C", "link-args=-sSIDE_MODULE=2",
6-
"-C", "link-args=-pthread",
79
"-C", "target-feature=+atomics,+bulk-memory,+mutable-globals",
810
"-Zlink-native-libraries=no",
11+
"-Cllvm-args=-enable-emscripten-cxx-exceptions=0",
912
]

0 commit comments

Comments
 (0)