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__`).
This commit is contained in:
Fabio Alessandrelli 2022-09-03 13:36:40 +02:00
parent b8977ca333
commit 6baf530bcb

View file

@ -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)