mirror of
https://github.com/VectorCamp/vectorscan.git
synced 2025-06-28 16:41:01 +03:00
Merge pull request #173 from VectorCamp/bugfix/disable-fat-macos-arm
Bugfix/disable fat macos arm
This commit is contained in:
commit
adedf2acf3
@ -24,6 +24,9 @@ int main() {
|
|||||||
endif ()
|
endif ()
|
||||||
|
|
||||||
if (ARCH_AARCH64)
|
if (ARCH_AARCH64)
|
||||||
|
if (APPLE)
|
||||||
|
set (FAT_RUNTIME OFF)
|
||||||
|
endif()
|
||||||
set(PREV_FLAGS "${CMAKE_C_FLAGS}")
|
set(PREV_FLAGS "${CMAKE_C_FLAGS}")
|
||||||
if (BUILD_SVE2_BITPERM)
|
if (BUILD_SVE2_BITPERM)
|
||||||
set(CMAKE_C_FLAGS "-march=${GNUCC_ARCH} ${CMAKE_C_FLAGS}")
|
set(CMAKE_C_FLAGS "-march=${GNUCC_ARCH} ${CMAKE_C_FLAGS}")
|
||||||
|
@ -30,7 +30,9 @@
|
|||||||
#ifndef AARCH64_CPUID_INLINE_H_
|
#ifndef AARCH64_CPUID_INLINE_H_
|
||||||
#define AARCH64_CPUID_INLINE_H_
|
#define AARCH64_CPUID_INLINE_H_
|
||||||
|
|
||||||
|
#if defined(__linux__)
|
||||||
#include <sys/auxv.h>
|
#include <sys/auxv.h>
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "ue2common.h"
|
#include "ue2common.h"
|
||||||
#include "util/arch/common/cpuid_flags.h"
|
#include "util/arch/common/cpuid_flags.h"
|
||||||
@ -40,6 +42,7 @@ int check_neon(void) {
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined(__linux__)
|
||||||
static inline
|
static inline
|
||||||
int check_sve(void) {
|
int check_sve(void) {
|
||||||
unsigned long hwcap = getauxval(AT_HWCAP);
|
unsigned long hwcap = getauxval(AT_HWCAP);
|
||||||
@ -57,5 +60,16 @@ int check_sve2(void) {
|
|||||||
}
|
}
|
||||||
return 0;
|
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_
|
#endif // AARCH64_CPUID_INLINE_H_
|
||||||
|
Loading…
x
Reference in New Issue
Block a user