Skip to content

Commit f2bf92a

Browse files
aarch64-pc-windows-msvc: Don't link libpanic_unwind to libtest.
1 parent 5ad5aca commit f2bf92a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

src/libtest/lib.rs

+9-1
Original file line numberDiff line numberDiff line change
@@ -45,9 +45,17 @@
4545
extern crate getopts;
4646
#[cfg(any(unix, target_os = "cloudabi"))]
4747
extern crate libc;
48-
extern crate panic_unwind;
4948
extern crate term;
5049

50+
// FIXME(#54291): rustc and/or LLVM don't yet support building with panic-unwind
51+
// on aarch64-pc-windows-msvc, so we don't link libtest against
52+
// libunwind (for the time being), even though it means that
53+
// libtest won't be fully functional on this platform.
54+
//
55+
// See also: https://github.com/rust-lang/rust/issues/54190#issuecomment-422904437
56+
#[cfg(not(all(windows, target_arch = "aarch64")))]
57+
extern crate panic_unwind;
58+
5159
pub use self::TestFn::*;
5260
pub use self::ColorConfig::*;
5361
pub use self::TestResult::*;

0 commit comments

Comments
 (0)