Merge pull request #490 from atsushieno/patch-1

Fix build on Android 32-bit arm: hardfp is not available
This commit is contained in:
JP Cimalando 2020-10-12 16:54:51 +02:00 committed by GitHub
commit 0c9aa89419
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,9 @@ if (CMAKE_CXX_COMPILER_ID MATCHES "GNU|Clang")
add_compile_options(-msse2)
elseif(SFIZZ_SYSTEM_PROCESSOR MATCHES "^(arm.*)$")
add_compile_options(-mfpu=neon)
add_compile_options(-mfloat-abi=hard)
if (NOT ANDROID)
add_compile_options(-mfloat-abi=hard)
endif()
endif()
elseif (CMAKE_CXX_COMPILER_ID MATCHES "MSVC")
set(CMAKE_CXX_STANDARD 17)