Skip to content

Commit

Permalink
cargo: Disable LTO..
Browse files Browse the repository at this point in the history
..to reduce `liblimbo_sqlite3.a` size from 37M to 20M. As it turns out,
LLVM emits its bitcode into static libraries when LTO is enabled to be
"more aggressive" in optimizations

Refs #714
  • Loading branch information
penberg committed Jan 16, 2025
1 parent 41b8228 commit a876c0e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,12 +54,11 @@ github-attestations = true
[profile.release]
codegen-units = 1
panic = "abort"
lto = true
lto = "off"

[profile.bench-profile]
inherits = "release"
debug = true

[profile.dist]
inherits = "release"
lto = "thin"

0 comments on commit a876c0e

Please sign in to comment.