Skip to content

Commit

Permalink
fix flags for default target
Browse files Browse the repository at this point in the history
  • Loading branch information
jhen0409 committed Aug 30, 2023
1 parent 36f7720 commit 1560754
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -23,9 +23,9 @@ function(build_library target_name)

target_link_libraries(${target_name} ${LOG_LIB} android)

if (${ANDROID_ABI} STREQUAL "arm64-v8a")
if (${ANDROID_ABI} STREQUAL "arm64-v8a" AND ${target_name} STREQUAL "whisper_v8fp16_va")
target_compile_options(${target_name} PRIVATE -march=armv8.2-a+fp16)
elseif (${ANDROID_ABI} STREQUAL "armeabi-v7a")
elseif (${ANDROID_ABI} STREQUAL "armeabi-v7a" AND ${target_name} STREQUAL "whisper_vfpv4")
target_compile_options(${target_name} PRIVATE -mfpu=neon-vfpv4)
endif ()

Expand Down

0 comments on commit 1560754

Please sign in to comment.