mirror of https://git.videolan.org/git/ffmpeg.git
configure: support --cpu=host and Clang
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
parent
0f387f2b62
commit
f87e29a615
|
@ -3981,6 +3981,17 @@ if test "$cpu" = host; then
|
||||||
}
|
}
|
||||||
cpu=$(check_native -march || check_native -mcpu)
|
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
|
esac
|
||||||
|
|
||||||
test "${cpu:-host}" = host &&
|
test "${cpu:-host}" = host &&
|
||||||
|
|
Loading…
Reference in New Issue