commit fc3c67bdd6e311b5c7fe287e7f3464be2f2fd059 parent 4be69bda4cf608ad816d759b0c6e55d37d69f39f Author: d.levin256@gmail.com <d.levin256@gmail.com> Date: Tue, 20 Oct 2020 16:12:30 +0100 arm builds require neon support Diffstat:
M | include/kfr/kfr.h | | | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/include/kfr/kfr.h b/include/kfr/kfr.h @@ -77,3 +77,7 @@ constexpr inline const char version_full[] = KFR_VERSION_FULL; #ifdef CMT_NATIVE_F64 #define KFR_NATIVE_F64 CMT_NATIVE_F64 #endif + +#if defined CMT_ARCH_ARM && !defined CMT_ARCH_NEON && !defined CMT_FORCE_GENERIC_CPU +#error "ARM builds require NEON support. Add -march=native for native build or skip the check with CMT_FORCE_GENERIC_CPU=1" +#endif