Skip to content

Commit 4918f81

Browse files
authored
Merge pull request #174 from VectorCamp/develop
Minor bugfix release 5.4.10.1
2 parents ad42abe + adedf2a commit 4918f81

File tree

2 files changed

+17
-0
lines changed

2 files changed

+17
-0
lines changed

cmake/arch.cmake

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ int main() {
2424
endif ()
2525

2626
if (ARCH_AARCH64)
27+
if (APPLE)
28+
set (FAT_RUNTIME OFF)
29+
endif()
2730
set(PREV_FLAGS "${CMAKE_C_FLAGS}")
2831
if (BUILD_SVE2_BITPERM)
2932
set(CMAKE_C_FLAGS "-march=${GNUCC_ARCH} ${CMAKE_C_FLAGS}")

src/util/arch/arm/cpuid_inline.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@
3030
#ifndef AARCH64_CPUID_INLINE_H_
3131
#define AARCH64_CPUID_INLINE_H_
3232

33+
#if defined(__linux__)
3334
#include <sys/auxv.h>
35+
#endif
3436

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

45+
#if defined(__linux__)
4346
static inline
4447
int check_sve(void) {
4548
unsigned long hwcap = getauxval(AT_HWCAP);
@@ -57,5 +60,16 @@ int check_sve2(void) {
5760
}
5861
return 0;
5962
}
63+
#else
64+
static inline
65+
int check_sve(void) {
66+
return 0;
67+
}
68+
69+
static inline
70+
int check_sve2(void) {
71+
return 0;
72+
}
73+
#endif
6074

6175
#endif // AARCH64_CPUID_INLINE_H_

0 commit comments

Comments
 (0)