File tree Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Expand file tree Collapse file tree 2 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -632,7 +632,7 @@ fn merge_profile(profile: &mut Profile, toml: &TomlProfile) {
632
632
profile. strip = match toml. strip {
633
633
Some ( StringOrBool :: Bool ( true ) ) => Strip :: Named ( InternedString :: new ( "symbols" ) ) ,
634
634
None | Some ( StringOrBool :: Bool ( false ) ) => Strip :: None ,
635
- Some ( StringOrBool :: String ( ref n) ) if is_off ( n. as_str ( ) ) => Strip :: None ,
635
+ Some ( StringOrBool :: String ( ref n) ) if n. as_str ( ) == "none" => Strip :: None ,
636
636
Some ( StringOrBool :: String ( ref n) ) => Strip :: Named ( InternedString :: new ( n) ) ,
637
637
} ;
638
638
}
Original file line number Diff line number Diff line change @@ -106,12 +106,12 @@ strip either symbols or debuginfo from a binary. This can be enabled like so:
106
106
strip = " debuginfo"
107
107
```
108
108
109
- Other possible string values of ` strip ` are ` none ` , ` symbols ` , and ` off ` . The
110
- default is ` none ` .
109
+ Possible string values of ` strip ` are ` " none" ` , ` "debuginfo" ` , and ` "symbols" ` .
110
+ The default is ` " none" ` .
111
111
112
- You can also configure this option with the two absolute boolean values
113
- ` true ` and ` false ` . The former enables ` strip ` at its higher level, ` symbols ` ,
114
- while the latter disables ` strip ` completely.
112
+ You can also configure this option with the boolean values ` true ` or ` false ` .
113
+ ` strip = true ` is equivalent to ` strip = "symbols" ` . ` strip = false ` is
114
+ equivalent to ` strip = "none" ` and disables ` strip ` completely.
115
115
116
116
[ `-C strip` flag ] : ../../rustc/codegen-options/index.html#strip
117
117
You can’t perform that action at this time.
0 commit comments