diff options
| author | Erik Kundiman <erik@megapahit.org> | 2025-10-05 16:11:19 +0800 |
|---|---|---|
| committer | Erik Kundiman <erik@megapahit.org> | 2025-10-05 16:16:49 +0800 |
| commit | cee509bcb5a6045369237c0667d17f85f52b808a (patch) | |
| tree | c3c424ff1052c38090578610096b533d22a64ff7 /indra/cmake/WebRTC.cmake | |
| parent | 686503ead2dff32c67f99b8b048e7ba9284cda72 (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.cmake | 6 |
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 () |
