From: Konstantinos Margaritis Date: Fri, 30 Oct 2020 08:50:24 +0000 (+0200) Subject: needed for ARM vector type conversions X-Git-Tag: v5.3.1^2^2~17 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=592b1905afdf175e124c5a1bd1282df718e559c6;p=thirdparty%2Fvectorscan.git needed for ARM vector type conversions --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 4077d396..55954384 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -288,6 +288,8 @@ if (ARCH_IA32 OR ARCH_X86_64) CHECK_INCLUDE_FILE_CXX(x86intrin.h HAVE_CXX_X86INTRIN_H) elseif (ARCH_ARM32 OR ARCH_AARCH64) CHECK_INCLUDE_FILE_CXX(arm_neon.h HAVE_C_ARM_NEON_H) + set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flax-vector-conversions") + set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flax-vector-conversions") endif() CHECK_FUNCTION_EXISTS(posix_memalign HAVE_POSIX_MEMALIGN)