Upgrade to target-lexicon 0.11
This allows downstream library users to use `CDataModel` without having to install two different versions of target-lexicon.
This commit is contained in:
committed by
Dan Gohman
parent
379aed8092
commit
d28abad441
@@ -13,7 +13,7 @@ edition = "2018"
|
||||
cranelift-module = { path = "../module", version = "0.66.0" }
|
||||
cranelift-codegen = { path = "../codegen", version = "0.66.0", default-features = false, features = ["std"] }
|
||||
object = { version = "0.21.1", default-features = false, features = ["write"] }
|
||||
target-lexicon = "0.10"
|
||||
target-lexicon = "0.11"
|
||||
anyhow = "1.0"
|
||||
|
||||
[badges]
|
||||
|
||||
@@ -57,11 +57,15 @@ impl ObjectBuilder {
|
||||
target_lexicon::BinaryFormat::Unknown => {
|
||||
return Err(ModuleError::Backend(anyhow!("binary format is unknown")))
|
||||
}
|
||||
other => {
|
||||
return Err(ModuleError::Backend(anyhow!(
|
||||
"binary format {} not recognized",
|
||||
other
|
||||
)))
|
||||
}
|
||||
};
|
||||
let architecture = match isa.triple().architecture {
|
||||
target_lexicon::Architecture::I386
|
||||
| target_lexicon::Architecture::I586
|
||||
| target_lexicon::Architecture::I686 => object::Architecture::I386,
|
||||
target_lexicon::Architecture::X86_32(_) => object::Architecture::I386,
|
||||
target_lexicon::Architecture::X86_64 => object::Architecture::X86_64,
|
||||
target_lexicon::Architecture::Arm(_) => object::Architecture::Arm,
|
||||
target_lexicon::Architecture::Aarch64(_) => object::Architecture::Aarch64,
|
||||
|
||||
Reference in New Issue
Block a user