Fix build on Android 32-bit arm: hardfp is not available
context: d783ba6c87 (r43170024)
This fixes build errors like this on Android 32-bit arm architecture:
`error: lv2/CMakeFiles/sfizz_lv2.dir/sfizz.c.o uses VFP register arguments, output does not`
This commit is contained in:
parent
b1345ab246
commit
777bcf7b17
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue