Utility build scripts and more optimization

This commit is contained in:
Tobias Berger 2022-11-04 10:25:46 +01:00
parent 1ba784960c
commit 5a24a885b6
Signed by: toby
GPG key ID: 2D05EFAB764D6A88
2 changed files with 24 additions and 0 deletions

View file

@ -8,9 +8,20 @@ resolver = "2"
strip = "symbols" strip = "symbols"
lto = "thin" lto = "thin"
opt-level = 3 opt-level = 3
codegen-units = 1
[profile.dev.package."*"] [profile.dev.package."*"]
opt-level = 3 opt-level = 3
codegen-units = 1
[profile.release.package."*"]
opt-level = 3
codegen-units = 1
[profile.dev.build-override]
opt-level = 3
codegen-units = 1
[profile.release.build-override]
opt-level = 3
codegen-units = 1
[features] [features]
# bevy/trace_chrome for tracing by function # bevy/trace_chrome for tracing by function

13
build_all.sh.ps1 Executable file
View file

@ -0,0 +1,13 @@
#!/bin/env /bin/sh
cargo build --no-default-features --features= &&
cargo build --no-default-features --features=logging &&
cargo build --no-default-features --features=render &&
cargo build --no-default-features --features=logging,render &&
cargo build --no-default-features --features=globe_view &&
cargo build --no-default-features --features=logging,globe_view &&
cargo build --release --no-default-features --features= &&
cargo build --release --no-default-features --features=logging &&
cargo build --release --no-default-features --features=render &&
cargo build --release --no-default-features --features=logging,render &&
cargo build --release --no-default-features --features=globe_view &&
cargo build --release --no-default-features --features=logging,globe_view