File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 118
118
# export LDFLAGS+=" --source-map-base http://localhost:3000/lib/"
119
119
120
120
# Rust flags
121
+ # TODO(kleisauke): Remove +bulk-memory,+nontrapping-fptoint once Rust updates LLVM to 20, see:
122
+ # https://github.com/llvm/llvm-project/commit/1bc2cd98c58a1059170dc38697c7a29a8e21160b
121
123
export RUSTFLAGS=" -Ctarget-feature=+atomics,+bulk-memory,+nontrapping-fptoint -Zdefault-visibility=hidden"
122
124
123
125
# Common compiler flags
@@ -132,6 +134,8 @@ if [ "$WASM_EH" = "true" ]; then
132
134
export RUSTFLAGS+=" -Zemscripten-wasm-eh"
133
135
if [ " $WASM_EXNREF " = " true" ]; then
134
136
COMMON_FLAGS+=" -sWASM_LEGACY_EXCEPTIONS=0"
137
+ # TODO(kleisauke): Switch to -wasm-use-legacy-eh=0 once Rust updates LLVM to 20, see:
138
+ # https://github.com/llvm/llvm-project/commit/a8e1135baa9074f7c088c8e1999561f88699b56e
135
139
export RUSTFLAGS+=" -Cllvm-args=-wasm-enable-exnref"
136
140
fi
137
141
else
You can’t perform that action at this time.
0 commit comments