Replace USE_ARM_SVE with HAVE_SVE.

Change-Id: I469efaac197cba93201f2ca6eca78ca61be3054d
This commit is contained in:
George Wort
2021-07-16 13:21:14 +01:00
committed by Konstantinos Margaritis
parent ca7d5d7536
commit 6d23032a6b
3 changed files with 10 additions and 16 deletions

View File

@@ -312,6 +312,9 @@ elseif (ARCH_ARM32 OR ARCH_AARCH64)
CHECK_INCLUDE_FILE_CXX(arm_neon.h HAVE_C_ARM_NEON_H)
if (BUILD_SVE OR BUILD_SVE2 OR BUILD_SVE2_BITPERM)
CHECK_INCLUDE_FILE_CXX(arm_sve.h HAVE_C_ARM_SVE_H)
if (NOT HAVE_C_ARM_SVE_H)
message(FATAL_ERROR "arm_sve.h is required to build for SVE.")
endif()
endif()
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -flax-vector-conversions")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -flax-vector-conversions")