From 5a24a885b61043765368f60f8875805f5e38fb93 Mon Sep 17 00:00:00 2001 From: Tobias Berger Date: Fri, 4 Nov 2022 10:25:46 +0100 Subject: [PATCH] Utility build scripts and more optimization --- Cargo.toml | 11 +++++++++++ build_all.sh.ps1 | 13 +++++++++++++ 2 files changed, 24 insertions(+) create mode 100755 build_all.sh.ps1 diff --git a/Cargo.toml b/Cargo.toml index 35651ff..039f5f7 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -8,9 +8,20 @@ resolver = "2" strip = "symbols" lto = "thin" opt-level = 3 +codegen-units = 1 [profile.dev.package."*"] 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] # bevy/trace_chrome for tracing by function diff --git a/build_all.sh.ps1 b/build_all.sh.ps1 new file mode 100755 index 0000000..9554274 --- /dev/null +++ b/build_all.sh.ps1 @@ -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 \ No newline at end of file