Skip to content

Commit

Permalink
Work around Opus 1.4+ build failure on armv7l (#24017)
Browse files Browse the repository at this point in the history
  • Loading branch information
cbjeukendrup authored Aug 14, 2024
1 parent 4f2b9e2 commit a699a64
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/framework/audio/thirdparty/opusenc/cmake/SetupOpus.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,11 @@ endif ()
set(OPUS_LIB_DIR ${CMAKE_CURRENT_SOURCE_DIR}/../opus/opus-1.4)
add_subdirectory(${OPUS_LIB_DIR} opus)

include(GetPlatformInfo)
if (ARCH_IS_ARMV7L)
target_compile_options(opus PUBLIC -mfpu=neon)
endif()

set(OPUS_INCLUDE_DIRS ${OPUS_LIB_DIR}/include)
set(OPUS_LIBRARIES opus)

Expand Down

0 comments on commit a699a64

Please sign in to comment.