File tree 2 files changed +17
-0
lines changed 2 files changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ int main() {
24
24
endif ()
25
25
26
26
if (ARCH_AARCH64)
27
+ if (APPLE )
28
+ set (FAT_RUNTIME OFF )
29
+ endif ()
27
30
set (PREV_FLAGS "${CMAKE_C_FLAGS} " )
28
31
if (BUILD_SVE2_BITPERM)
29
32
set (CMAKE_C_FLAGS "-march=${GNUCC_ARCH} ${CMAKE_C_FLAGS} " )
Original file line number Diff line number Diff line change 30
30
#ifndef AARCH64_CPUID_INLINE_H_
31
31
#define AARCH64_CPUID_INLINE_H_
32
32
33
+ #if defined(__linux__ )
33
34
#include <sys/auxv.h>
35
+ #endif
34
36
35
37
#include "ue2common.h"
36
38
#include "util/arch/common/cpuid_flags.h"
@@ -40,6 +42,7 @@ int check_neon(void) {
40
42
return 1 ;
41
43
}
42
44
45
+ #if defined(__linux__ )
43
46
static inline
44
47
int check_sve (void ) {
45
48
unsigned long hwcap = getauxval (AT_HWCAP );
@@ -57,5 +60,16 @@ int check_sve2(void) {
57
60
}
58
61
return 0 ;
59
62
}
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
60
74
61
75
#endif // AARCH64_CPUID_INLINE_H_
You can’t perform that action at this time.
0 commit comments