mirror of
https://github.com/uutils/coreutils.git
synced 2025-12-23 08:47:37 +00:00
Cargo.toml: move panic=abort to release profile (save binary size)
This commit is contained in:
parent
d4321315f1
commit
d1cf2ffd36
1 changed files with 4 additions and 7 deletions
11
Cargo.toml
11
Cargo.toml
|
|
@ -587,17 +587,13 @@ name = "uudoc"
|
|||
path = "src/bin/uudoc.rs"
|
||||
required-features = ["uudoc"]
|
||||
|
||||
# The default release profile. It contains all optimizations.
|
||||
# With this profile (like in the standard release profile),
|
||||
# the stack traces will still be available.
|
||||
# The default release profile with some optimizations.
|
||||
[profile.release]
|
||||
lto = true
|
||||
panic = "abort"
|
||||
|
||||
# A release-like profile that is tuned to be fast, even when being fast
|
||||
# compromises on binary size. This includes aborting on panic.
|
||||
[profile.release-fast]
|
||||
inherits = "release"
|
||||
panic = "abort"
|
||||
codegen-units = 1
|
||||
|
||||
# A release-like profile that is as small as possible.
|
||||
|
|
@ -606,10 +602,11 @@ inherits = "release-fast"
|
|||
opt-level = "z"
|
||||
strip = true
|
||||
|
||||
# A release-like profile with debug info, useful for profiling.
|
||||
# A release-like profile with debug info for profiling.
|
||||
# See https://github.com/mstange/samply .
|
||||
[profile.profiling]
|
||||
inherits = "release"
|
||||
panic = "unwind"
|
||||
debug = true
|
||||
|
||||
[lints]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue