We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f8f0a6 commit c35a1d4Copy full SHA for c35a1d4
compiler/rustc_codegen_llvm/src/back/archive.rs
@@ -151,7 +151,9 @@ impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a> {
151
output_path.with_extension("lib")
152
};
153
154
- let mingw_gnu_toolchain = self.config.sess.target.llvm_target.ends_with("pc-windows-gnu");
+ let target = &self.config.sess.target;
155
+ let mingw_gnu_toolchain =
156
+ target.vendor == "pc" && target.os == "windows" && target.env == "gnu";
157
158
let import_name_and_ordinal_vector: Vec<(String, Option<u16>)> = dll_imports
159
.iter()
0 commit comments