Fix hwcap test for CI

Signed-off-by: Dave Rodgman <dave.rodgman@arm.com>
This commit is contained in:
Dave Rodgman 2023-10-13 10:15:55 +01:00
parent 7821df3e8b
commit 768bc143ad

View file

@ -4344,10 +4344,9 @@ support_build_sha_armce() {
clang_ver="$(clang --version|grep version|sed -E 's#.*version ([0-9]+).*#\1#')"
# we need asm/hwcap.h available for runtime detection
echo '#include <asm/hwcap.h>' | clang -E - >/dev/null 2>&1
have_hwcap=$?
echo '#include <asm/hwcap.h>' | clang -E - >/dev/null 2>&1 && no_hwcap=0 || no_hwcap=1
[[ "${clang_ver}" -ge 4 && "${have_hwcap}" -eq 0 ]]
[[ "${clang_ver}" -ge 4 && "${no_hwcap}" -eq 0 ]]
}
component_build_sha_armce () {