Skip to content

Commit 006c884

Browse files
committed
Fix two new failing tests
The updated wasi-sdk has debuginfo by default so be sure to strip the debuginfo by default when testing the size of new executables.
1 parent 5b0b4ff commit 006c884

File tree

2 files changed

+15
-2
lines changed

2 files changed

+15
-2
lines changed

tests/run-make/wasm-panic-small/rmake.rs

+8-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,14 @@ fn main() {
1313
fn test(cfg: &str) {
1414
eprintln!("running cfg {cfg:?}");
1515

16-
rustc().input("foo.rs").target("wasm32-wasip1").arg("-Clto").opt().cfg(cfg).run();
16+
rustc()
17+
.input("foo.rs")
18+
.target("wasm32-wasip1")
19+
.arg("-Clto")
20+
.arg("-Cstrip=debuginfo")
21+
.opt()
22+
.cfg(cfg)
23+
.run();
1724

1825
let bytes = rfs::read("foo.wasm");
1926
println!("{}", bytes.len());

tests/run-make/wasm-stringify-ints-small/rmake.rs

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,13 @@
44
use run_make_support::{rfs, rustc};
55

66
fn main() {
7-
rustc().input("foo.rs").target("wasm32-wasip1").arg("-Clto").opt().run();
7+
rustc()
8+
.input("foo.rs")
9+
.target("wasm32-wasip1")
10+
.arg("-Clto")
11+
.arg("-Cstrip=debuginfo")
12+
.opt()
13+
.run();
814

915
let bytes = rfs::read("foo.wasm");
1016
println!("{}", bytes.len());

0 commit comments

Comments
 (0)