From b46b98ba60ddc8fa9b6a556743c8d484c02c9276 Mon Sep 17 00:00:00 2001 From: messense Date: Mon, 23 Dec 2024 21:30:13 +0800 Subject: [PATCH] Refine `armv7l` target architecture detection Ref #2405 --- src/target.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/target.rs b/src/target.rs index b5084a9bf..a613734a8 100644 --- a/src/target.rs +++ b/src/target.rs @@ -270,7 +270,8 @@ impl Target { Architecture::X86_32(_) => Arch::X86, Architecture::Arm(arm_arch) => match arm_arch { ArmArchitecture::Arm | ArmArchitecture::Armv6 => Arch::Armv6L, - _ => Arch::Armv7L, + ArmArchitecture::Armv7 => Arch::Armv7L, + _ => bail!("The architecture {} is not supported", arm_arch), }, Architecture::Aarch64(_) => Arch::Aarch64, Architecture::Powerpc => Arch::Powerpc,