A couple extra build profiles
This commit is contained in:
16
Cargo.toml
16
Cargo.toml
@@ -15,3 +15,19 @@ debug_ui = ["bevy_rapier2d/debug-render-2d"]
|
||||
|
||||
[target.'cfg(target_arch = "wasm32")'.dependencies]
|
||||
getrandom = { version = "0.3.3", features = ["wasm_js"] }
|
||||
|
||||
[profile.wasm-O3]
|
||||
inherits = "release"
|
||||
codegen-units = 1
|
||||
lto = "fat"
|
||||
opt-level = 3
|
||||
strip = "symbols"
|
||||
panic = "abort"
|
||||
|
||||
[profile.wasm-Oz]
|
||||
inherits = "release"
|
||||
codegen-units = 1
|
||||
lto = "fat"
|
||||
opt-level = "z"
|
||||
strip = "symbols"
|
||||
panic = "abort"
|
||||
|
||||
Reference in New Issue
Block a user