1
1
Fork 0

zshrc: Add classic macOS to cross

This commit is contained in:
Jonathan Schleifer 2022-11-25 21:36:11 +00:00
parent 660bce5291
commit 7c6cb25130

26
zshrc
View file

@ -435,7 +435,7 @@ cross() {
case "$2" in case "$2" in
m68k) m68k)
if [ -z "$amiga_gcc_path" ]; then 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 return 1
fi fi
@ -444,7 +444,7 @@ cross() {
;; ;;
ppc) ppc)
if [ -z "$adtools_path" ]; then if [ -z "$adtools_path" ]; then
echo -n "Please set adtools_path!" 1>&2 echo "Please set adtools_path!" 1>&2
return 1 return 1
fi fi
@ -502,6 +502,28 @@ cross() {
export IPHONEOS_DEPLOYMENT_TARGET="10.0" export IPHONEOS_DEPLOYMENT_TARGET="10.0"
export cross_host="$archs[(w)1]-apple-darwin" 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) mingw)
case "$2" in case "$2" in
i686 | x86_64) i686 | x86_64)