From: Cameron Cawley Date: Tue, 29 Aug 2023 02:48:56 +0000 (-0700) Subject: Allow ACLE to be enabled on all ARM architecture versions X-Git-Tag: 2.1.4~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b3643707ab92b6515878b23082f1303fd61af01d;p=thirdparty%2Fzlib-ng.git Allow ACLE to be enabled on all ARM architecture versions --- diff --git a/CMakeLists.txt b/CMakeLists.txt index 1e4d82237..cc42f1a33 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -615,7 +615,7 @@ if(WITH_OPTIM) endif() list(APPEND ZLIB_ARCH_HDRS ${ARCHDIR}/arm_features.h) list(APPEND ZLIB_ARCH_SRCS ${ARCHDIR}/arm_features.c) - if(WITH_ACLE AND NOT "${ARCH}" MATCHES "armv[2-7]") + if(WITH_ACLE) check_acle_compiler_flag() if(HAVE_ACLE_FLAG) add_definitions(-DARM_ACLE) @@ -715,7 +715,7 @@ if(WITH_OPTIM) add_definitions(-DRISCV_RVV) list(APPEND ZLIB_ARCH_HDRS ${ARCHDIR}/riscv_features.h) list(APPEND ZLIB_ARCH_SRCS ${ARCHDIR}/riscv_features.c) - # FIXME: we will not set compile flags for riscv_features.c when + # FIXME: we will not set compile flags for riscv_features.c when # the kernels update hwcap or hwprobe for riscv set(RVV_SRCS ${ARCHDIR}/riscv_features.c ${ARCHDIR}/adler32_rvv.c ${ARCHDIR}/compare256_rvv.c ${ARCHDIR}/slide_hash_rvv.c) list(APPEND ZLIB_ARCH_SRCS ${RVV_SRCS})