From 28d8d7702dfe59a3b01ab449cdbd3a0f98c3bd80 Mon Sep 17 00:00:00 2001 From: Ookiineko Date: Wed, 17 Jan 2024 07:28:58 +0000 Subject: [PATCH] add import library (.dll.a) file type for Cygwin - needed to link std correctly Signed-off-by: Ookiineko --- src/cargo/core/compiler/build_context/target_info.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/cargo/core/compiler/build_context/target_info.rs b/src/cargo/core/compiler/build_context/target_info.rs index 9726266bbac..209d88a02d2 100644 --- a/src/cargo/core/compiler/build_context/target_info.rs +++ b/src/cargo/core/compiler/build_context/target_info.rs @@ -438,7 +438,8 @@ impl TargetInfo { }); } else if suffix == ".dll" && (target_triple.ends_with("windows-gnu") - || target_triple.ends_with("windows-gnullvm")) + || target_triple.ends_with("windows-gnullvm") + || target_triple.ends_with("cygwin")) { // See https://cygwin.com/cygwin-ug-net/dll.html for more // information about GNU import libraries.