File tree Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Expand file tree Collapse file tree 2 files changed +10
-6
lines changed Original file line number Diff line number Diff line change @@ -342,6 +342,10 @@ PHP_C_BIGENDIAN
342342dnl Check if we're targeting x86 / x86_64
343343PHP_CHECK_X86_TARGET
344344
345+ dnl Check if we're targeting ARM Neon CPUs
346+ PHP_CHECK_ARM_NEON_SUPPORT
347+
348+
345349dnl Check if we're targeting Windows
346350PHP_CHECK_WINDOWS_TARGET
347351
Original file line number Diff line number Diff line change 1010
1111EXT_HASH_BLAKE3_SOURCES="hash_blake3.c blake3/upstream_blake3/c/blake3.c blake3/upstream_blake3/c/blake3_dispatch.c blake3/upstream_blake3/c/blake3_portable.c"
1212
13- dnl if test $ac_cv_target_arm_neon = yes; then
14- dnl EXT_HASH_BLAKE3_SOURCES="$EXT_HASH_BLAKE3_SOURCES blake3/upstream_blake3/c/blake3_neon.c"
15- dnl EXT_HASH_BLAKE3_HEADERS="$EXT_HASH_BLAKE3_HEADERS ext/hash/blake3/upstream_blake3/c/blake3_impl.h"
16- dnl fi
17- PHP_HASH_CFLAGS="$PHP_HASH_CFLAGS -DBLAKE3_USE_NEON=0"
18-
13+ if test $ac_cv_target_arm_neon = yes; then
14+ EXT_HASH_BLAKE3_SOURCES="$EXT_HASH_BLAKE3_SOURCES blake3/upstream_blake3/c/blake3_neon.c"
15+ EXT_HASH_BLAKE3_HEADERS="$EXT_HASH_BLAKE3_HEADERS ext/hash/blake3/upstream_blake3/c/blake3_impl.h"
16+ else
17+ PHP_HASH_CFLAGS="$PHP_HASH_CFLAGS -DBLAKE3_USE_NEON=0"
18+ fi
1919
2020if test $ac_cv_c_bigendian_php = yes; then
2121 EXT_HASH_SHA3_SOURCES="hash_sha3.c"
You can’t perform that action at this time.
0 commit comments