Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit 0d81211

Browse files
committed
tests: adjust emit-stack-sizes
1 parent 0fa62e2 commit 0d81211

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

tests/run-make/emit-stack-sizes/rmake.rs

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,18 @@
66
// this diagnostics information should be located.
77
// See https://github.com/rust-lang/rust/pull/51946
88

9-
//@ ignore-windows
10-
//@ ignore-apple
11-
// Reason: this feature only works when the output object format is ELF.
12-
// This won't be the case on Windows/OSX - for example, OSX produces a Mach-O binary.
9+
//@ only-elf
1310

14-
use run_make_support::{llvm_readobj, rustc};
11+
use run_make_support::{llvm_readobj, rustc, target};
1512

1613
fn main() {
17-
rustc().opt_level("3").arg("-Zemit-stack-sizes").emit("obj").input("foo.rs").run();
14+
rustc()
15+
.target(target())
16+
.opt_level("3")
17+
.arg("-Zemit-stack-sizes")
18+
.emit("obj")
19+
.input("foo.rs")
20+
.run();
1821
llvm_readobj()
1922
.arg("--section-headers")
2023
.input("foo.o")

0 commit comments

Comments
 (0)