mirror of https://github.com/mpv-player/mpv
Use -march=native (avail. since gcc 4.2) when possible
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@24371 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
a7aae21ad0
commit
bab14c11d7
|
@ -1770,6 +1770,7 @@ cat > $TMPC << EOF
|
|||
int main(void) { return 0; }
|
||||
EOF
|
||||
if test "$_runtime_cpudetection" = no ; then
|
||||
cc_check -march=native && proc=native
|
||||
if test "$proc" = "k8"; then
|
||||
cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp
|
||||
fi
|
||||
|
@ -1915,6 +1916,7 @@ int main(void) { return 0; }
|
|||
EOF
|
||||
# This is a stripped-down version of the i386 fallback.
|
||||
if test "$_runtime_cpudetection" = no ; then
|
||||
cc_check -march=native && proc=native
|
||||
# --- AMD processors ---
|
||||
if test "$proc" = "k8"; then
|
||||
cc_check -march=$proc $cpuopt=$proc || proc=athlon-xp
|
||||
|
|
Loading…
Reference in New Issue