Skip to content

Commit

Permalink
Merge pull request #174 from VectorCamp/develop
Browse files Browse the repository at this point in the history
Minor bugfix release 5.4.10.1
  • Loading branch information
markos authored Sep 8, 2023
2 parents ad42abe + adedf2a commit 4918f81
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
3 changes: 3 additions & 0 deletions cmake/arch.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@ int main() {
endif ()

if (ARCH_AARCH64)
if (APPLE)
set (FAT_RUNTIME OFF)
endif()
set(PREV_FLAGS "${CMAKE_C_FLAGS}")
if (BUILD_SVE2_BITPERM)
set(CMAKE_C_FLAGS "-march=${GNUCC_ARCH} ${CMAKE_C_FLAGS}")
Expand Down
14 changes: 14 additions & 0 deletions src/util/arch/arm/cpuid_inline.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@
#ifndef AARCH64_CPUID_INLINE_H_
#define AARCH64_CPUID_INLINE_H_

#if defined(__linux__)
#include <sys/auxv.h>
#endif

#include "ue2common.h"
#include "util/arch/common/cpuid_flags.h"
Expand All @@ -40,6 +42,7 @@ int check_neon(void) {
return 1;
}

#if defined(__linux__)
static inline
int check_sve(void) {
unsigned long hwcap = getauxval(AT_HWCAP);
Expand All @@ -57,5 +60,16 @@ int check_sve2(void) {
}
return 0;
}
#else
static inline
int check_sve(void) {
return 0;
}

static inline
int check_sve2(void) {
return 0;
}
#endif

#endif // AARCH64_CPUID_INLINE_H_

0 comments on commit 4918f81

Please sign in to comment.