We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9551ed3 commit a10eb86Copy full SHA for a10eb86
tests/testsuite/profiles.rs
@@ -468,3 +468,34 @@ fn thin_lto_works() {
468
)
469
.run();
470
}
471
+
472
+#[cargo_test]
473
+fn strip_works() {
474
+ let p = project()
475
+ .file(
476
+ "Cargo.toml",
477
+ r#"
478
+ cargo-features = ["strip"]
479
480
+ [package]
481
+ name = "foo"
482
+ version = "0.1.0"
483
484
+ [profile.release]
485
+ strip = 'symbols'
486
+ "#,
487
+ )
488
+ .file("src/main.rs", "fn main() {}")
489
+ .build();
490
491
+ p.cargo("build --release -v")
492
+ .masquerade_as_nightly_cargo()
493
+ .with_stderr(
494
+ "\
495
+[COMPILING] foo [..]
496
+[RUNNING] `rustc [..] -Z strip=symbols [..]`
497
+[FINISHED] [..]
498
+",
499
500
+ .run();
501
+}
0 commit comments