Skip to content

Commit

Permalink
try enabling arm neon
Browse files Browse the repository at this point in the history
  • Loading branch information
caustik committed Apr 25, 2023
1 parent 67b33ab commit 269eaaa
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions ebur128/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,10 @@ if(MSVC)
if(CMAKE_SIZEOF_VOID_P LESS 8)
add_definitions(/arch:SSE2)
endif()
elseif(CMAKE_SYSTEM_PROCESSOR MATCHES "^(arm|ARM)")
message(STATUS "Enabling ARM NEON support")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfloat-abi=hard -mfpu=neon")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfloat-abi=hard -mfpu=neon")
endif()


Expand Down

0 comments on commit 269eaaa

Please sign in to comment.