Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions libbz2-rs-sys-cdylib/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,14 @@ name = "libbz2_rs"
filename = "libbz2_rs"

# no_std requires panic=abort
# Also use lto to optimize away references to rust_eh_personality on targets
# that are not no_std. On no_std targets rust_eh_personality is not referenced
# in the first place.
[profile.dev]
panic = "abort"
lto = "thin"
opt-level = 1

[profile.release]
panic = "abort"
lto = "thin"
Loading