Skip to content

Commit 64de613

Browse files
committed
Enable more release optimizations
1 parent 962a415 commit 64de613

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.cargo/config.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,5 @@
1+
[build]
2+
rustflags = ["-C", "target-cpu=native"]
3+
14
[alias]
25
mlogv32 = "run --release --features mlogv32 --bin mlogv32 --"

Cargo.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,3 +55,8 @@ inherits = "dev"
5555

5656
[profile.dev-debug.package."*"]
5757
opt-level = 2
58+
59+
[profile.release]
60+
codegen-units = 1
61+
lto = "fat"
62+

0 commit comments

Comments
 (0)