From 46b6f19640338b4694930d5b12b8880fb53c089e Mon Sep 17 00:00:00 2001 From: Martin Nordholts Date: Thu, 15 Jan 2026 06:12:57 +0100 Subject: [PATCH] compiletest: Don't look for Dylib if no-prefer-dynamic Since it does not make sense to do so. If someone prefers no dynamic linking, it is much more likely that they want to link with a Lib instead. --- src/tools/compiletest/src/runtest.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tools/compiletest/src/runtest.rs b/src/tools/compiletest/src/runtest.rs index 6efdb5a99ee22..376b0dfe7fc2b 100644 --- a/src/tools/compiletest/src/runtest.rs +++ b/src/tools/compiletest/src/runtest.rs @@ -1412,7 +1412,7 @@ impl<'test> TestCx<'test> { } else if aux_type.is_some() { panic!("aux_type {aux_type:?} not expected"); } else if aux_props.no_prefer_dynamic { - (AuxType::Dylib, None) + (AuxType::Lib, None) } else if self.config.target.contains("emscripten") || (self.config.target.contains("musl") && !aux_props.force_host