Skip to content

Commit

Permalink
Merge pull request #24033 from cbjeukendrup/port/4.4.0/armv7l_opus_1_…
Browse files Browse the repository at this point in the history
…4_build_workaround

[4.4.0] Work around Opus 1.4+ build failure on armv7l
  • Loading branch information
RomanPudashkin committed Aug 14, 2024
2 parents 4f31ce1 + a6b2445 commit 7453015
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 7453015

Please sign in to comment.