summaryrefslogtreecommitdiff
path: root/src/libtest
diff options
context:
space:
mode:
authorMichael Woerister <michaelwoerister@posteo>2018-09-24 14:37:09 +0200
committerMichael Woerister <michaelwoerister@posteo>2018-09-24 14:37:09 +0200
commitf2bf92a4e8ee93dd033a35a810c64e56aee67825 (patch)
treec5ad0b16bf8a72dd0c3db4b75ec7a129a0853a93 /src/libtest
parent5ad5aca714a29931903b8e22851dfd9db2bedba7 (diff)
downloadrust-f2bf92a4e8ee93dd033a35a810c64e56aee67825.tar.gz
aarch64-pc-windows-msvc: Don't link libpanic_unwind to libtest.
Diffstat (limited to 'src/libtest')
-rw-r--r--src/libtest/lib.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/libtest/lib.rs b/src/libtest/lib.rs
index 6ffa6e9be93..f6383c19cb5 100644
--- a/src/libtest/lib.rs
+++ b/src/libtest/lib.rs
@@ -45,9 +45,17 @@
extern crate getopts;
#[cfg(any(unix, target_os = "cloudabi"))]
extern crate libc;
-extern crate panic_unwind;
extern crate term;
+// FIXME(#54291): rustc and/or LLVM don't yet support building with panic-unwind
+// on aarch64-pc-windows-msvc, so we don't link libtest against
+// libunwind (for the time being), even though it means that
+// libtest won't be fully functional on this platform.
+//
+// See also: https://github.com/rust-lang/rust/issues/54190#issuecomment-422904437
+#[cfg(not(all(windows, target_arch = "aarch64")))]
+extern crate panic_unwind;
+
pub use self::TestFn::*;
pub use self::ColorConfig::*;
pub use self::TestResult::*;