Skip to content

Commit e7bf8ce

Browse files
authored
Build fix for systems that do not support getauxval
1 parent 0f863f9 commit e7bf8ce

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

driver/others/dynamic_arm64.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ static gotoblas_t *get_coretype(void) {
143143

144144
#if (!defined OS_LINUX && !defined OS_ANDROID)
145145
return NULL;
146-
#endif
146+
#else
147147

148148
if (!(getauxval(AT_HWCAP) & HWCAP_CPUID)) {
149149
#ifdef __linux
@@ -235,6 +235,7 @@ static gotoblas_t *get_coretype(void) {
235235
openblas_warning(1, coremsg);
236236
}
237237
return NULL;
238+
#endif
238239
}
239240

240241
void gotoblas_dynamic_init(void) {

0 commit comments

Comments
 (0)