osxcross/oclang/check_target_option.sh

17 lines
237 B
Bash
Raw Normal View History

2013-11-10 14:49:24 +01:00
#!/usr/bin/env bash
export LC_ALL="C"
which clang 2>&1 1>/dev/null || exit 1
x=`clang -target i386-apple-darwin9 2>&1`
case "$x" in
*i386-apple-darwin9*)
echo "-ccc-host-triple"
exit 0
;;
esac
echo "-target"