OpenMiInk/third_party/krita-deps-management/ext_libx265/patches/handbrake/A07-Fix-macOS-cross-compilation.patch
Hellings b8c8ff98e2 Hi
2026-10-16 09:05:56 -04:00

14 lines
594 B
Diff

diff --git a/source/CMakeLists.txt b/source/CMakeLists.txt
index 4160514b9..c2784e967 100755
--- a/source/CMakeLists.txt
+++ b/source/CMakeLists.txt
@@ -789,6 +789,9 @@ if((MSVC_IDE OR XCODE OR GCC) AND ENABLE_ASSEMBLY)
elseif(ARM64 OR CROSS_COMPILE_ARM64)
# compile ARM64 arch asm files here
enable_language(ASM)
+ if(APPLE)
+ set(ARM_ARGS ${ARM_ARGS} -arch ${CMAKE_OSX_ARCHITECTURES})
+ endif()
foreach(ASM ${ARM_ASMS})
set(ASM_SRC ${CMAKE_CURRENT_SOURCE_DIR}/common/aarch64/${ASM})
list(APPEND ASM_SRCS ${ASM_SRC})