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.
This commit is contained in:
parent
9f8f0a6e94
commit
c35a1d4028
@ -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