1
1
Fork 0

zshrc: Add cross djgpp

This commit is contained in:
Jonathan Schleifer 2022-12-04 23:46:17 +00:00
parent f469263e78
commit 802b147758

12
zshrc
View file

@ -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