mirror of
https://github.com/Cyrix126/gupaxx.git
synced 2024-12-22 06:39:21 +00:00
feat: optimize build time for dev
This commit is contained in:
parent
cf28482193
commit
2695b1e116
3 changed files with 8 additions and 12 deletions
2
.github/workflows/lockbud.yml
vendored
2
.github/workflows/lockbud.yml
vendored
|
@ -17,7 +17,7 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
git clone https://github.com/BurtonQin/lockbud.git
|
git clone https://github.com/BurtonQin/lockbud.git
|
||||||
cd lockbud
|
cd lockbud
|
||||||
sed -i 's/2024-10-05/2024-10-11/g' rust-toolchain.toml
|
sed -i 's/-2024-10-05//g' rust-toolchain.toml
|
||||||
cargo install --path .
|
cargo install --path .
|
||||||
cd ..
|
cd ..
|
||||||
cargo clean
|
cargo clean
|
||||||
|
|
13
Cargo.toml
13
Cargo.toml
|
@ -1,4 +1,4 @@
|
||||||
cargo-features = ["profile-rustflags"]
|
cargo-features = ["profile-rustflags", "codegen-backend"]
|
||||||
[package]
|
[package]
|
||||||
name = "gupaxx"
|
name = "gupaxx"
|
||||||
version = "1.5.3"
|
version = "1.5.3"
|
||||||
|
@ -8,20 +8,15 @@ documentation = "https://github.com/cyrix126/gupaxx"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[profile.release]
|
[profile.release]
|
||||||
# panic = "abort"
|
panic = "abort"
|
||||||
lto = "fat"
|
lto = "fat"
|
||||||
codegen-units = 1
|
codegen-units = 1
|
||||||
incremental = false
|
incremental = false
|
||||||
# strip = "symbols"
|
strip = "symbols"
|
||||||
rustflags = ["-Zlocation-detail=none"]
|
rustflags = ["-Zlocation-detail=none"]
|
||||||
|
|
||||||
[profile.dev]
|
[profile.dev]
|
||||||
opt-level = 1
|
codegen-backend = "cranelift"
|
||||||
debug = true
|
|
||||||
strip = "none"
|
|
||||||
debug-assertions = true
|
|
||||||
overflow-checks = true
|
|
||||||
incremental = true
|
|
||||||
|
|
||||||
[features]
|
[features]
|
||||||
default = []
|
default = []
|
||||||
|
|
|
@ -1,4 +1,5 @@
|
||||||
[toolchain]
|
[toolchain]
|
||||||
channel = "nightly-2024-10-11"
|
# channel = "nightly-2024-10-11"
|
||||||
components = [ "rustfmt", "rustc-dev", "cargo", "clippy", "rust-analyzer", "rust-src", "llvm-tools-preview"]
|
channel = "nightly"
|
||||||
|
components = [ "rustfmt", "rustc-dev", "cargo", "clippy", "rust-analyzer", "rust-src", "llvm-tools-preview", "rustc-codegen-cranelift-preview"]
|
||||||
target = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin","x86_64-pc-windows-gnu"]
|
target = ["x86_64-unknown-linux-gnu", "aarch64-apple-darwin", "x86_64-apple-darwin","x86_64-pc-windows-gnu"]
|
||||||
|
|
Loading…
Reference in a new issue