File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -214,6 +214,9 @@ features! {
214
214
215
215
// Opt-in new-resolver behavior.
216
216
[ unstable] resolver: bool ,
217
+
218
+ // Allow to specify whether binaries should be stripped.
219
+ [ unstable] strip: bool ,
217
220
}
218
221
}
219
222
@@ -353,6 +356,7 @@ pub struct CliUnstable {
353
356
pub crate_versions : bool ,
354
357
pub separate_nightlies : bool ,
355
358
pub multitarget : bool ,
359
+ pub strip : bool ,
356
360
}
357
361
358
362
impl CliUnstable {
@@ -432,6 +436,7 @@ impl CliUnstable {
432
436
"crate-versions" => self . crate_versions = parse_empty ( k, v) ?,
433
437
"separate-nightlies" => self . separate_nightlies = parse_empty ( k, v) ?,
434
438
"multitarget" => self . multitarget = parse_empty ( k, v) ?,
439
+ "strip" => self . strip = parse_empty ( k, v) ?,
435
440
_ => bail ! ( "unknown `-Z` flag specified: {}" , k) ,
436
441
}
437
442
Original file line number Diff line number Diff line change @@ -525,6 +525,7 @@ impl TomlProfile {
525
525
}
526
526
527
527
if let Some ( strip) = & self . strip {
528
+ features. require ( Feature :: strip ( ) ) ?;
528
529
if strip != "debuginfo" && strip != "none" && strip != "symbols" {
529
530
bail ! (
530
531
"`strip` setting of `{}` is not a valid setting,\
You can’t perform that action at this time.
0 commit comments