osxcross/oclang/check_clang_target_option.sh
Thomas Pöchtrager 2e957af35c initial commit
2014-03-26 20:28:13 +01:00

17 lines
237 B
Bash
Executable File

#!/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"