Add release profiles

This commit is contained in:
Maximilian 2023-01-24 13:00:46 -06:00
parent 949436dcff
commit b84acc83bc

14
.cargo/config.toml Normal file
View File

@ -0,0 +1,14 @@
[profile.release]
opt-level = "s"
[target.x86_64-pc-windows-msvc]
rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"]
[target.x86_64-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=8", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"]
[target.i686-pc-windows-msvc]
rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"]
[target.i686-unknown-linux-gnu]
rustflags = ["-C", "target-cpu=native", "-C", "codegen-units=4", "-C", "debuginfo=0", "-C", "profile-generate", "-C", "inline-threshold=2000"]