mirror of
https://github.com/roc-lang/roc.git
synced 2024-09-11 18:58:24 +03:00
fix wasm options to enable lto
This commit is contained in:
parent
13245e1bb3
commit
056d3b133c
@ -6,9 +6,10 @@ test-gen-llvm-wasm = "test -p roc_gen_wasm -p test_gen --no-default-features --f
|
||||
|
||||
[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
|
||||
# lto=fat Spend extra effort on link-time optimization across crates
|
||||
rustflags = ["-Copt-level=s", "-Clto=fat"]
|
||||
# opt-level=s Optimizations should focus more on size than speed
|
||||
# lto=fat Spend extra effort on link-time optimization across crates
|
||||
# embed-bitcode=yes Turn back on lto since it is no longer default
|
||||
rustflags = ["-Copt-level=s", "-Clto=fat", "-Cembed-bitcode=yes"]
|
||||
|
||||
[target.'cfg(not(target = "wasm32-unknown-unknown"))']
|
||||
# Sets the avx, avx2, sse2 and sse4.2 target-features correctly based on your CPU.
|
||||
|
Loading…
Reference in New Issue
Block a user