Rollup merge of #94365 - mati865:fix-mingw-detection-for-rawdylib, r=michaelwoerister
Fix MinGW target detection in raw-dylib LLVM target doesn't have to be the same as Rust target so relying on it is wrong. It was one of concerns in https://github.com/rust-lang/rust/pull/88801 that was not fixed in https://github.com/rust-lang/rust/pull/90782.
This commit is contained in:
commit
ea39f46cad
@ -151,7 +151,9 @@ impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a> {
|
||||
output_path.with_extension("lib")
|
||||
};
|
||||
|
||||
let mingw_gnu_toolchain = self.config.sess.target.llvm_target.ends_with("pc-windows-gnu");
|
||||
let target = &self.config.sess.target;
|
||||
let mingw_gnu_toolchain =
|
||||
target.vendor == "pc" && target.os == "windows" && target.env == "gnu";
|
||||
|
||||
let import_name_and_ordinal_vector: Vec<(String, Option<u16>)> = dll_imports
|
||||
.iter()
|
||||
|
Loading…
x
Reference in New Issue
Block a user