Move to 0.50.1
This commit is contained in:
parent
da8f230d5f
commit
4daae65228
2 changed files with 14 additions and 12 deletions
|
|
@ -158,11 +158,11 @@ checksum = "b0674a1ddeecb70197781e945de4b3b8ffb61fa939a5597bcf48503737663100"
|
|||
|
||||
[[package]]
|
||||
name = "ar_archive_writer"
|
||||
version = "0.5.0"
|
||||
version = "0.5.1"
|
||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||
checksum = "3219abbb81fdcb1a976d794ea40cd8567b67c4e8f93bdcd077a40a0905f133e8"
|
||||
checksum = "7eb93bbb63b9c227414f6eb3a0adfddca591a8ce1e9b60661bb08969b87e340b"
|
||||
dependencies = [
|
||||
"object 0.37.2",
|
||||
"object 0.37.3",
|
||||
]
|
||||
|
||||
[[package]]
|
||||
|
|
|
|||
|
|
@ -40,17 +40,18 @@ pub struct ImportLibraryItem {
|
|||
pub is_data: bool,
|
||||
}
|
||||
|
||||
impl From<ImportLibraryItem> for COFFShortExport {
|
||||
fn from(item: ImportLibraryItem) -> Self {
|
||||
impl ImportLibraryItem {
|
||||
fn into_coff_short_export(self, sess: &Session) -> COFFShortExport {
|
||||
let import_name = (sess.target.arch == "arm64ec").then(|| self.name.clone());
|
||||
COFFShortExport {
|
||||
name: item.name,
|
||||
name: self.name,
|
||||
ext_name: None,
|
||||
symbol_name: item.symbol_name,
|
||||
import_name: None,
|
||||
symbol_name: self.symbol_name,
|
||||
import_name,
|
||||
export_as: None,
|
||||
ordinal: item.ordinal.unwrap_or(0),
|
||||
noname: item.ordinal.is_some(),
|
||||
data: item.is_data,
|
||||
ordinal: self.ordinal.unwrap_or(0),
|
||||
noname: self.ordinal.is_some(),
|
||||
data: self.is_data,
|
||||
private: false,
|
||||
constant: false,
|
||||
}
|
||||
|
|
@ -114,7 +115,8 @@ pub trait ArchiveBuilderBuilder {
|
|||
.emit_fatal(ErrorCreatingImportLibrary { lib_name, error: error.to_string() }),
|
||||
};
|
||||
|
||||
let exports = items.into_iter().map(Into::into).collect::<Vec<_>>();
|
||||
let exports =
|
||||
items.into_iter().map(|item| item.into_coff_short_export(sess)).collect::<Vec<_>>();
|
||||
let machine = match &*sess.target.arch {
|
||||
"x86_64" => MachineTypes::AMD64,
|
||||
"x86" => MachineTypes::I386,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue