Add LLVM based mingw-w64 targets

This commit is contained in:
Mateusz Mikuła 2022-03-06 15:12:50 +01:00
parent a7d6408b05
commit 60361f2ca3
14 changed files with 175 additions and 18 deletions

View file

@ -152,8 +152,10 @@ impl<'a> ArchiveBuilder<'a> for LlvmArchiveBuilder<'a> {
};
let target = &self.config.sess.target;
let mingw_gnu_toolchain =
target.vendor == "pc" && target.os == "windows" && target.env == "gnu";
let mingw_gnu_toolchain = target.vendor == "pc"
&& target.os == "windows"
&& target.env == "gnu"
&& target.abi.is_empty();
let import_name_and_ordinal_vector: Vec<(String, Option<u16>)> = dll_imports
.iter()