From e7bf8ced6ccdc9c579ff5f8b94c20f104d98f616 Mon Sep 17 00:00:00 2001 From: Martin Kroeker Date: Sun, 22 Nov 2020 20:20:28 +0100 Subject: [PATCH] Build fix for systems that do not support getauxval --- driver/others/dynamic_arm64.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/driver/others/dynamic_arm64.c b/driver/others/dynamic_arm64.c index 007a221..4f1b12f 100644 --- a/driver/others/dynamic_arm64.c +++ b/driver/others/dynamic_arm64.c @@ -143,7 +143,7 @@ static gotoblas_t *get_coretype(void) { #if (!defined OS_LINUX && !defined OS_ANDROID) return NULL; -#endif +#else if (!(getauxval(AT_HWCAP) & HWCAP_CPUID)) { #ifdef __linux @@ -235,6 +235,7 @@ static gotoblas_t *get_coretype(void) { openblas_warning(1, coremsg); } return NULL; +#endif } void gotoblas_dynamic_init(void) { -- 2.7.4