From 1161f230c5c9cdc8e06d102651000f329210260e Mon Sep 17 00:00:00 2001 From: Ben Westover Date: Tue, 24 Jun 2025 15:28:01 -0400 Subject: [PATCH] Add armv8l to list of 32 bit ARM targets armv8l is what CMAKE_SYSTEM_PROCESSOR is set to when an ARMv8 processor is in 32-bit mode, so it should be added to the ARMv7 target list even though it's v8 because it's 32 bits. Currently, it's not in any ARM target list which means x86 is assumed and the build fails. --- cmake/cpu.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/cpu.cmake b/cmake/cpu.cmake index 12dbe9b1..fe322a3f 100644 --- a/cmake/cpu.cmake +++ b/cmake/cpu.cmake @@ -40,7 +40,7 @@ endif() if (NOT ARM_TARGET) if (CMAKE_SYSTEM_PROCESSOR MATCHES "^(aarch64|arm64|ARM64|armv8-a)$") set(ARM_TARGET 8) - elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7|armv7f|armv7s|armv7k|armv7-a|armv7l|armv7ve)$") + elseif (CMAKE_SYSTEM_PROCESSOR MATCHES "^(armv7|armv7f|armv7s|armv7k|armv7-a|armv7l|armv7ve|armv8l)$") set(ARM_TARGET 7) endif() endif()