zshrc: Add classic macOS to cross
This commit is contained in:
parent
660bce5291
commit
7c6cb25130
1 changed files with 24 additions and 2 deletions
26
zshrc
26
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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue