Skip to content

Commit

Permalink
Use lto and set target-cpu=native
Browse files Browse the repository at this point in the history
  • Loading branch information
sbernauer committed Jun 12, 2023
1 parent 369f0e0 commit 9d08574
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build]
rustflags = ["-C", "target-cpu=native"]
3 changes: 3 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,3 +45,6 @@ opt-level = 3

[profile.release]
opt-level = 3
lto = "fat"
codegen-units = 1
# panic = "abort" # You can enable this, but I prefer to get actual stack traces

0 comments on commit 9d08574

Please sign in to comment.