Fixed #7158: detection of arm neon.
This commit is contained in:
Родитель
7dfdd248ee
Коммит
6e075a6a7d
|
@ -516,7 +516,7 @@ if(ANDROID)
|
|||
|
||||
if(ANDROID_ABI STREQUAL arm64-v8a)
|
||||
# https://github.com/android/ndk/issues/910
|
||||
add_definitions(-D__ARM_NEON__)
|
||||
add_definitions(-D__ARM_NEON)
|
||||
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=softfp")
|
||||
endif()
|
||||
|
||||
|
|
|
@ -215,7 +215,13 @@ if(FAAC_FOUND)
|
|||
endif()
|
||||
|
||||
if(WITH_NEON)
|
||||
set_source_files_properties(${CODEC_NEON_SRCS} PROPERTIES COMPILE_FLAGS "-mfpu=neon" )
|
||||
check_symbol_exists("_M_AMD64" "" MSVC_ARM64)
|
||||
check_symbol_exists("__aarch64__" "" ARCH_ARM64)
|
||||
|
||||
if (NOT MSVC_ARM64 AND NOT ARCH_ARM64)
|
||||
set_source_files_properties(${CODEC_NEON_SRCS} PROPERTIES COMPILE_FLAGS "-mfpu=neon" )
|
||||
endif()
|
||||
|
||||
set(CODEC_SRCS ${CODEC_SRCS} ${CODEC_NEON_SRCS})
|
||||
endif()
|
||||
|
||||
|
|
|
@ -21,7 +21,7 @@
|
|||
#include "config.h"
|
||||
#endif
|
||||
|
||||
#if defined(__ARM_NEON__)
|
||||
#if defined(__ARM_NEON)
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
@ -241,4 +241,4 @@ void rfx_init_neon(RFX_CONTEXT* context)
|
|||
}
|
||||
}
|
||||
|
||||
#endif // __ARM_NEON__
|
||||
#endif // __ARM_NEON
|
||||
|
|
Загрузка…
Ссылка в новой задаче