summaryrefslogtreecommitdiff
path: root/indra/cmake/WebRTC.cmake
diff options
context:
space:
mode:
authorErik Kundiman <erik@megapahit.org>2025-10-05 16:11:19 +0800
committerErik Kundiman <erik@megapahit.org>2025-10-05 16:16:49 +0800
commitcee509bcb5a6045369237c0667d17f85f52b808a (patch)
treec3c424ff1052c38090578610096b533d22a64ff7 /indra/cmake/WebRTC.cmake
parent686503ead2dff32c67f99b8b048e7ba9284cda72 (diff)
lipo thin SLv macOS universal libraries
The fatal errors when lipo thinning something that's already thin, can be safely ignored.
Diffstat (limited to 'indra/cmake/WebRTC.cmake')
-rw-r--r--indra/cmake/WebRTC.cmake6
1 files changed, 6 insertions, 0 deletions
diff --git a/indra/cmake/WebRTC.cmake b/indra/cmake/WebRTC.cmake
index 535e1c0a9e..e66c9a6295 100644
--- a/indra/cmake/WebRTC.cmake
+++ b/indra/cmake/WebRTC.cmake
@@ -88,6 +88,12 @@ target_link_libraries( ll::webrtc INTERFACE ${WEBRTC_LIBRARY} )
if (DARWIN)
target_link_libraries( ll::webrtc INTERFACE ll::oslibraries )
+ execute_process(
+ COMMAND lipo libwebrtc.a
+ -thin ${CMAKE_OSX_ARCHITECTURES}
+ -output libwebrtc.a
+ WORKING_DIRECTORY ${ARCH_PREBUILT_DIRS_RELEASE}
+ )
elseif (LINUX)
target_link_libraries( ll::webrtc INTERFACE X11 )
endif ()