Skip to content

Commit

Permalink
Merge pull request #310 from Sharktheone/optimize-release
Browse files Browse the repository at this point in the history
Optimize release and benchmark builds
  • Loading branch information
jaytaph authored Dec 14, 2023
2 parents 4817b63 + 41b83f2 commit 5762236
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,3 +78,16 @@ test-case = "3.3.1"
[features]
# Enables extended debugging information during parsing.
debug_parser = []


[profile.release]
lto = "fat"
opt-level = 3
codegen-units = 1
#rustflags = ["-C", "target-cpu=native"] # Currently unstable and it can cause problems on older CPUs (don't have newer CPU instructions).

[profile.bench]
lto = "fat"
opt-level = 3
codegen-units = 1

0 comments on commit 5762236

Please sign in to comment.