Skip the panic-immediate-abort-works test when cross-compiling

This commit is contained in:
Ben Kimock 2025-09-22 21:13:38 -04:00
parent aef02fb864
commit 4c1595a93b

View File

@ -4,7 +4,12 @@
// cleaner and more portable). So this test ensures that we didn't mix up a cfg or a compiler
// implementation detail in a way that makes panic=immediate-abort encounter errors at link time.
// Ideally this test would be run for most targets, but unfortunately:
// This test is currently written using `fn main() {}` which requires std.
// And since the default linker is only a linker for the host, we can't handle cross-compilation.
// Both of these shortcomings could be addressed at the cost of making the test more complicated.
//@ needs-target-std
//@ ignore-cross-compile
#![deny(warnings)]