Skip to content

Commit

Permalink
chore: add LTO to release builds + fat LTO profile (#4869)
Browse files Browse the repository at this point in the history
  • Loading branch information
LesnyRumcajs authored Oct 9, 2024
1 parent 0ad7bfe commit 1e0f11c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ strip = true
# The FVM relies on catching panics. See: https://github.com/ChainSafe/forest/issues/3153
panic = "unwind"
overflow-checks = true
lto = "thin"

[profile.release-lto-fat]
inherits = "release"
lto = "fat"

# These should be refactored (probably removed) in #2984
[features]
Expand Down

0 comments on commit 1e0f11c

Please sign in to comment.