mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 18:58:24 +03:00
Add comments about Wasm compiler flags
This commit is contained in:
parent
52e17ae6b8
commit
7542610953
@ -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"]
|
||||
|
Loading…
Reference in New Issue
Block a user