zshrc: Add cross djgpp
This commit is contained in:
parent
f469263e78
commit
802b147758
1 changed files with 12 additions and 0 deletions
12
zshrc
12
zshrc
|
@ -460,6 +460,18 @@ cross() {
|
|||
return 1
|
||||
fi
|
||||
;;
|
||||
djgpp)
|
||||
local pkg="cross-i586-pc-msdosdjgpp-gcc"
|
||||
local prefix="$(pkg_info -qp $pkg 2>/dev/null |
|
||||
awk '/^@cwd/ { print $2; exit }')"
|
||||
if [ -z "$prefix" ]; then
|
||||
echo "Please install $pkg from pkgsrc!" 1>&2
|
||||
return 1
|
||||
fi
|
||||
|
||||
export PATH="$prefix/cross-djgpp/bin:$PATH"
|
||||
export cross_host="i586-pc-msdosdjgpp"
|
||||
;;
|
||||
ios | iossim)
|
||||
if ! __has_command xcrun; then
|
||||
echo -n "Can only cross-compile for iOS " 1>&2
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue