From 69de394439265584e17caa497a31c48c1be0dc7a Mon Sep 17 00:00:00 2001 From: Akshat Sinha Date: Wed, 27 Aug 2025 20:36:01 +0530 Subject: [PATCH] fix ppc altivec check & loongarch64-lsx typo closes https://github.com/official-stockfish/Stockfish/pull/6276 No functional change --- scripts/get_native_properties.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/get_native_properties.sh b/scripts/get_native_properties.sh index e8c8f23f2..180c15d15 100755 --- a/scripts/get_native_properties.sh +++ b/scripts/get_native_properties.sh @@ -31,7 +31,7 @@ set_arch_loongarch64() { if check_flags 'lasx'; then true_arch='loongarch64-lasx' elif check_flags 'lsx'; then - true_arch='lonngarch64-lsx' + true_arch='loongarch64-lsx' else true_arch='loongarch64' fi @@ -57,7 +57,7 @@ set_arch_x86_64() { } set_arch_ppc_64() { - if $(grep -q -w "altivec" /proc/cpuinfo); then + if grep -q -w "altivec" /proc/cpuinfo; then power=$(grep -oP -m 1 'cpu\t+: POWER\K\d+' /proc/cpuinfo) if [ "0$power" -gt 7 ]; then # VSX started with POWER8