Add comments about Wasm compiler flags

This commit is contained in:
Brian Carroll 2022-03-16 12:51:24 +00:00
parent 52e17ae6b8
commit 7542610953

View File

@ -4,4 +4,8 @@ test-gen-dev = "test -p roc_gen_dev -p test_gen --no-default-features --features
test-gen-wasm = "test -p roc_gen_wasm -p test_gen --no-default-features --features gen-wasm"
[target.wasm32-unknown-unknown]
# Rust compiler flags for minimum-sized .wasm binary in the web REPL
# opt-level=s Optimizations should focus more on size than speed
# panic=abort Don't emit code to unwind the stack on panic, just exit
# lto=fat Spend extra effort on link-time optimization across crates
rustflags = ["-Copt-level=s", "-Cpanic=abort", "-Clto=fat"]