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
@@ -17,7 +17,7 @@ cranelift-codegen-shared = { path = "./shared", version = "0.66.0" }
|
||||
cranelift-entity = { path = "../entity", version = "0.66.0" }
|
||||
cranelift-bforest = { path = "../bforest", version = "0.66.0" }
|
||||
hashbrown = { version = "0.7", optional = true }
|
||||
target-lexicon = "0.10"
|
||||
target-lexicon = "0.11"
|
||||
log = { version = "0.4.6", default-features = false }
|
||||
serde = { version = "1.0.94", features = ["derive"], optional = true }
|
||||
bincode = { version = "1.2.1", optional = true }
|
||||
|
||||
@@ -119,8 +119,10 @@ macro_rules! isa_builder {
|
||||
/// Return a builder that can create a corresponding `TargetIsa`.
|
||||
pub fn lookup(triple: Triple) -> Result<Builder, LookupError> {
|
||||
match triple.architecture {
|
||||
Architecture::Riscv32 | Architecture::Riscv64 => isa_builder!(riscv, "riscv", triple),
|
||||
Architecture::I386 | Architecture::I586 | Architecture::I686 | Architecture::X86_64 => {
|
||||
Architecture::Riscv32 { .. } | Architecture::Riscv64 { .. } => {
|
||||
isa_builder!(riscv, "riscv", triple)
|
||||
}
|
||||
Architecture::X86_32 { .. } | Architecture::X86_64 => {
|
||||
if cfg!(feature = "x64") {
|
||||
isa_builder!(x64, "x64", triple)
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user