From 6baf530bcb8c405e29841736a5daf881808164fc Mon Sep 17 00:00:00 2001 From: Fabio Alessandrelli Date: Sat, 3 Sep 2022 13:36:40 +0200 Subject: Fix arm32 detection in Engine. The `__ARM_ARCH_7A__` and `__ARM_ARCH_7S__` are not enough, since they do not cover e.g. `__ARM_ARCH_8A__` in 32 bit mode, so instead of trying to cover any possible ARM version that can work in 32 bit mode, we can replace it with the `__arm__` macro which is defined for arm32 only (arm64 uses `__aarch64__`). --- core/config/engine.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'core/config') diff --git a/core/config/engine.cpp b/core/config/engine.cpp index 94db3612b4..cf9697be07 100644 --- a/core/config/engine.cpp +++ b/core/config/engine.cpp @@ -194,7 +194,7 @@ String Engine::get_architecture_name() const { #elif defined(__aarch64__) || defined(_M_ARM64) || defined(_M_ARM64EC) return "arm64"; -#elif defined(__ARM_ARCH_7A__) || defined(__ARM_ARCH_7S__) || defined(_M_ARM) +#elif defined(__arm__) || defined(_M_ARM) return "arm32"; #elif defined(__riscv) -- cgit v1.2.3