Skip to content

Commit

Permalink
fix unsupported option '-mfloat-abi=hard' for target thumbv7-none-lin…
Browse files Browse the repository at this point in the history
…ux-android21
  • Loading branch information
julesgrc0 committed Feb 21, 2024
1 parent 3ee65c8 commit 3bdba7b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,8 @@ if(ANDROID)

set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -O3 -flto")
if(CMAKE_ANDROID_ARCH_ABI STREQUAL "armeabi-v7a")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=hard -mfpu=neon")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS}-mfloat-abi=softfp -mfpu=vfpv3-d16")
elseif(CMAKE_ANDROID_ARCH_ABI STREQUAL "arm64-v8a")
# https://gcc.gnu.org/onlinedocs/gcc-4.8.5/gcc/AArch64-Options.html
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfix-cortex-a53-835769 -mcpu=cortex-a53 -march=armv8-a")
endif()

Expand Down

0 comments on commit 3bdba7b

Please sign in to comment.