Skip to content

Commit bb92472

Browse files
committed
[temp] [CMake] Hack to fix libass on macOS ARM
1 parent ee7e401 commit bb92472

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

cmake/modules/FindASS.cmake

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ if(NOT TARGET ${APP_NAME_LC}::${CMAKE_FIND_PACKAGE_NAME})
5858
set(DISABLE_ASM "--disable-asm")
5959
endif()
6060

61+
# macOS aarch64 toolchains sometimes fail to assemble libass in the
62+
# ExternalProject. Force a pure-C build here to avoid missing aarch64/*.o
63+
# during libtool archive.
64+
if(CMAKE_SYSTEM_NAME STREQUAL "Darwin" AND ARCH STREQUAL aarch64)
65+
set(DISABLE_ASM "--disable-asm")
66+
endif()
67+
6168
set(CONFIGURE_COMMAND ${AUTORECONF} -vif
6269
COMMAND ./configure
6370
--prefix=${DEPENDS_PATH}

0 commit comments

Comments
 (0)