Commit f87e29a6 authored by yukari yakumo's avatar yukari yakumo Committed by Michael Niedermayer

configure: support --cpu=host and Clang

Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 0f387f2b
......@@ -3981,6 +3981,17 @@ if test "$cpu" = host; then
}
cpu=$(check_native -march || check_native -mcpu)
;;
clang)
check_native(){
$cc $1=native -v -c -o $TMPO $TMPC >$TMPE 2>&1 || return
sed -n "/cc1.*-target-cpu /{
s/.*-target-cpu \\([^ ]*\\).*/\\1/
p
q
}" $TMPE
}
cpu=$(check_native -march)
;;
esac
test "${cpu:-host}" = host &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment