Bring `native' architectures into the collection.
[mdw-cross] / bin / crosstool
1 #! /bin/sh -e
2
3 tool=${0##*/cross-}
4 xtool=$(printf %s "$tool" | tr -c a-zA-Z0-9 x)
5 eval flags=\$CROSS_${xtool}_FLAGS
6
7 case ${CROSS_NATIVE_P-nil} in
8 t) exec $CROSS_COMPILER_PREFIX $tool $flags "$@" ;;
9 nil) exec $CROSS_COMPILER_PREFIX $CROSS_ARCH-$tool $flags "$@" ;;
10 esac