mirror of
https://github.com/rust-lang/cargo.git
synced 2025-09-28 11:20:36 +00:00
Auto merge of #10376 - joshtriplett:strip-no-off, r=alexcrichton
Remove `strip = "off"` (and undocumented `strip = "n"`/`strip = "no"`)
This commit is contained in:
commit
227f4c4fcf
@ -632,7 +632,7 @@ fn merge_profile(profile: &mut Profile, toml: &TomlProfile) {
|
||||
profile.strip = match toml.strip {
|
||||
Some(StringOrBool::Bool(true)) => Strip::Named(InternedString::new("symbols")),
|
||||
None | Some(StringOrBool::Bool(false)) => Strip::None,
|
||||
Some(StringOrBool::String(ref n)) if is_off(n.as_str()) => Strip::None,
|
||||
Some(StringOrBool::String(ref n)) if n.as_str() == "none" => Strip::None,
|
||||
Some(StringOrBool::String(ref n)) => Strip::Named(InternedString::new(n)),
|
||||
};
|
||||
}
|
||||
|
@ -106,12 +106,12 @@ strip either symbols or debuginfo from a binary. This can be enabled like so:
|
||||
strip = "debuginfo"
|
||||
```
|
||||
|
||||
Other possible string values of `strip` are `none`, `symbols`, and `off`. The
|
||||
default is `none`.
|
||||
Possible string values of `strip` are `"none"`, `"debuginfo"`, and `"symbols"`.
|
||||
The default is `"none"`.
|
||||
|
||||
You can also configure this option with the two absolute boolean values
|
||||
`true` and `false`. The former enables `strip` at its higher level, `symbols`,
|
||||
while the latter disables `strip` completely.
|
||||
You can also configure this option with the boolean values `true` or `false`.
|
||||
`strip = true` is equivalent to `strip = "symbols"`. `strip = false` is
|
||||
equivalent to `strip = "none"` and disables `strip` completely.
|
||||
|
||||
[`-C strip` flag]: ../../rustc/codegen-options/index.html#strip
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user