From a699a64fb8ad79c57fc5a4b5923307e9f7a9db35 Mon Sep 17 00:00:00 2001 From: Casper Jeukendrup <48658420+cbjeukendrup@users.noreply.github.com> Date: Wed, 14 Aug 2024 13:24:55 +0200 Subject: [PATCH] Work around Opus 1.4+ build failure on armv7l (#24017) --- src/framework/audio/thirdparty/opusenc/cmake/SetupOpus.cmake | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/framework/audio/thirdparty/opusenc/cmake/SetupOpus.cmake b/src/framework/audio/thirdparty/opusenc/cmake/SetupOpus.cmake index 655d8dfe5939e..2b287d94c665d 100644 --- a/src/framework/audio/thirdparty/opusenc/cmake/SetupOpus.cmake +++ b/src/framework/audio/thirdparty/opusenc/cmake/SetupOpus.cmake @@ -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)