Skip to content

Commit 4c1595a

Browse files
committed
Skip the panic-immediate-abort-works test when cross-compiling
1 parent aef02fb commit 4c1595a

File tree

1 file changed

+5
-0
lines changed
  • tests/run-make-cargo/panic-immediate-abort-works

1 file changed

+5
-0
lines changed

tests/run-make-cargo/panic-immediate-abort-works/rmake.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,12 @@
44
// cleaner and more portable). So this test ensures that we didn't mix up a cfg or a compiler
55
// implementation detail in a way that makes panic=immediate-abort encounter errors at link time.
66

7+
// Ideally this test would be run for most targets, but unfortunately:
8+
// This test is currently written using `fn main() {}` which requires std.
9+
// And since the default linker is only a linker for the host, we can't handle cross-compilation.
10+
// Both of these shortcomings could be addressed at the cost of making the test more complicated.
711
//@ needs-target-std
12+
//@ ignore-cross-compile
813

914
#![deny(warnings)]
1015

0 commit comments

Comments
 (0)