Browse Source

configure: support --cpu=host and Clang

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
tags/n3.0
yukari yakumo Michael Niedermayer 10 years ago
parent
commit
f87e29a615
1 changed files with 11 additions and 0 deletions
  1. +11
    -0
      configure

+ 11
- 0
configure View File

@@ -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 &&


Loading…
Cancel
Save