<div dir="ltr">pushed to master branch<br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sat, Apr 1, 2023 at 10:03 AM Mahesh Pittala <<a href="mailto:mahesh@multicorewareinc.com">mahesh@multicorewareinc.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">From 753305affb093ae15d5e4b333125267b16258c21 Mon Sep 17 00:00:00 2001<br>From: Barath Nithish <<a href="mailto:bharath.lingasamy@multicorewareinc.com" target="_blank">bharath.lingasamy@multicorewareinc.com</a>><br>Date: Sat, 1 Apr 2023 09:55:13 +0530<br>Subject: [PATCH] add MacOS aarch64 build support<br><br>Signed-off-by: maheshpittala <<a href="mailto:mahesh@multicorewareinc.com" target="_blank">mahesh@multicorewareinc.com</a>><br>---<br> build/aarch64-darwin/crosscompile.cmake | 15 +++++++++++++++<br> build/aarch64-darwin/make-Makefiles.bash | 4 ++++<br> 2 files changed, 19 insertions(+)<br> create mode 100644 build/aarch64-darwin/crosscompile.cmake<br> create mode 100644 build/aarch64-darwin/make-Makefiles.bash<br><br>diff --git a/build/aarch64-darwin/crosscompile.cmake b/build/aarch64-darwin/crosscompile.cmake<br>new file mode 100644<br>index 000000000..c35f73dc4<br>--- /dev/null<br>+++ b/build/aarch64-darwin/crosscompile.cmake<br>@@ -0,0 +1,15 @@<br>+# CMake toolchain file for cross compiling x265 for aarch64<br>+# This feature is only supported as experimental. Use with caution.<br>+# Please report bugs on bitbucket<br>+# Run cmake with: cmake -DCMAKE_TOOLCHAIN_FILE=crosscompile.cmake -G "Unix Makefiles" ../../source && ccmake ../../source<br>+<br>+set(CROSS_COMPILE_ARM64 1)<br>+set(CMAKE_SYSTEM_NAME Darwin)<br>+set(CMAKE_SYSTEM_PROCESSOR aarch64)<br>+<br>+# specify the cross compiler<br>+set(CMAKE_C_COMPILER gcc-12)<br>+set(CMAKE_CXX_COMPILER g++-12)<br>+<br>+# specify the target environment<br>+SET(CMAKE_FIND_ROOT_PATH /opt/homebrew/bin/)<br>diff --git a/build/aarch64-darwin/make-Makefiles.bash b/build/aarch64-darwin/make-Makefiles.bash<br>new file mode 100644<br>index 000000000..c9582da0a<br>--- /dev/null<br>+++ b/build/aarch64-darwin/make-Makefiles.bash<br>@@ -0,0 +1,4 @@<br>+#!/bin/bash<br>+# Run this from within a bash shell<br>+<br>+cmake -DCMAKE_TOOLCHAIN_FILE="crosscompile.cmake" -G "Unix Makefiles" ../../source && ccmake ../../source<br>-- <br>2.23.0.windows.1<br><br></div>
</blockquote></div>