Skip to content

Commit

Permalink
fix mfpu=neon
Browse files Browse the repository at this point in the history
  • Loading branch information
zeriyoshi committed Mar 3, 2025
1 parent 1324193 commit 8fd3921
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,10 @@ if(HAVE_NEON)
if(MSVC)
add_compile_definitions(__ARM_NEON__)
elseif(NOT APPLE)
add_compile_options(-mfpu=neon)
check_c_compiler_flag(-mfpu=neon COMPILER_SUPPORTS_MFPU_NEON)
if(COMPILER_SUPPORTS_MFPU_NEON)
add_compile_options(-mfpu=neon)
endif()
endif()
endif()

Expand Down

0 comments on commit 8fd3921

Please sign in to comment.