Merge pull request #10 from jdonald/fix-rpi-build

Fix asm compile errors on Raspberry Pi
This commit is contained in:
ptitSeb 2019-08-01 07:41:35 +02:00 committed by GitHub
commit 5739a7273e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -104,6 +104,9 @@ if(CMAKE_COMPILER_IS_GNUCC OR CMAKE_C_COMPILER_ID STREQUAL "Clang")
if(NOT PANDORA) if(NOT PANDORA)
add_compile_options(-march=native) add_compile_options(-march=native)
endif() endif()
if(CMAKE_SYSTEM_PROCESSOR MATCHES "^arm.*")
add_compile_options(-mfpu=neon)
endif()
add_compile_options(-fno-strict-aliasing) add_compile_options(-fno-strict-aliasing)
add_definitions(-D_REENTRANT=1) add_definitions(-D_REENTRANT=1)
add_definitions(-D_MT=1) add_definitions(-D_MT=1)