From 7c6cb251309c9ef7f9fd46dd71c7391bb007e5e8 Mon Sep 17 00:00:00 2001 From: Jonathan Schleifer Date: Fri, 25 Nov 2022 21:36:11 +0000 Subject: [PATCH] zshrc: Add classic macOS to cross --- zshrc | 26 ++++++++++++++++++++++++-- 1 file changed, 24 insertions(+), 2 deletions(-) diff --git a/zshrc b/zshrc index 0eabe90..f1e2971 100644 --- a/zshrc +++ b/zshrc @@ -435,7 +435,7 @@ cross() { case "$2" in m68k) if [ -z "$amiga_gcc_path" ]; then - echo -n "Please set amiga_gcc_path!" 1>&2 + echo "Please set amiga_gcc_path!" 1>&2 return 1 fi @@ -444,7 +444,7 @@ cross() { ;; ppc) if [ -z "$adtools_path" ]; then - echo -n "Please set adtools_path!" 1>&2 + echo "Please set adtools_path!" 1>&2 return 1 fi @@ -502,6 +502,28 @@ cross() { export IPHONEOS_DEPLOYMENT_TARGET="10.0" export cross_host="$archs[(w)1]-apple-darwin" ;; + macos) + if [ -z "$retro68_path" ]; then + echo "Please set retro68_path!" 1>&2 + return 1 + fi + + export PATH="$retro68_path/bin:$PATH" + + case "$2" in + m68k) + export cross_host="m68k-apple-macos" + ;; + ppc) + export cross_host="powerpc-apple-macos" + ;; + esac + + if [ $# != 2 -o -z "$cross_host" ]; then + echo "Usage: cross macos m68k|ppc" 1>&2 + return 1 + fi + ;; mingw) case "$2" in i686 | x86_64)