Skip to content

Commit

Permalink
support clang?
Browse files Browse the repository at this point in the history
  • Loading branch information
caustik committed Apr 25, 2023
1 parent 269eaaa commit c656b5e
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions ebur128/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,14 @@ if(MSVC)
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")
if(CMAKE_CXX_COMPILER_ID MATCHES "^(GNU|Clang)$")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -mfpu=neon")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -mfpu=neon")
if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -march=armv7-a")
set(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -march=armv7-a")
endif()
endif()
endif()


Expand Down

0 comments on commit c656b5e

Please sign in to comment.