diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-09-03 13:36:40 +0200 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2022-09-03 13:41:59 +0200 |
commit | 6baf530bcb8c405e29841736a5daf881808164fc (patch) | |
tree | 4f1b316ad7a69159d23068869781e3df72247936 /core/config | |
parent | b8977ca333fd0334669de0253f86abf6d401256a (diff) |
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__`).
Diffstat (limited to 'core/config')
-rw-r--r-- | core/config/engine.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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) |