comparison configure @ 31504:7ad75a6dc1b4

clang also does not support -march=native.
author reimar
date Sun, 27 Jun 2010 19:10:29 +0000
parents 4d06e790f7ad
children 5cb114fcfe2e
comparison
equal deleted inserted replaced
31503:4d06e790f7ad 31504:7ad75a6dc1b4
1932 echocheck "GCC & CPU optimization abilities" 1932 echocheck "GCC & CPU optimization abilities"
1933 cat > $TMPC << EOF 1933 cat > $TMPC << EOF
1934 int main(void) { return 0; } 1934 int main(void) { return 0; }
1935 EOF 1935 EOF
1936 if test "$_runtime_cpudetection" = no ; then 1936 if test "$_runtime_cpudetection" = no ; then
1937 if test $cc_vendor != "intel" ; then 1937 if test $cc_vendor != "intel" && test $cc_vendor != "clang" ; then
1938 cc_check -march=native && proc=native 1938 cc_check -march=native && proc=native
1939 fi 1939 fi
1940 if test "$proc" = "amdfam10"; then 1940 if test "$proc" = "amdfam10"; then
1941 cc_check -march=$proc $cpuopt=$proc || proc=k8 1941 cc_check -march=$proc $cpuopt=$proc || proc=k8
1942 fi 1942 fi
2085 cat > $TMPC << EOF 2085 cat > $TMPC << EOF
2086 int main(void) { return 0; } 2086 int main(void) { return 0; }
2087 EOF 2087 EOF
2088 # This is a stripped-down version of the i386 fallback. 2088 # This is a stripped-down version of the i386 fallback.
2089 if test "$_runtime_cpudetection" = no ; then 2089 if test "$_runtime_cpudetection" = no ; then
2090 if test $cc_vendor != "intel" ; then 2090 if test $cc_vendor != "intel" && test $cc_vendor != "clang" ; then
2091 cc_check -march=native && proc=native 2091 cc_check -march=native && proc=native
2092 fi 2092 fi
2093 # --- AMD processors --- 2093 # --- AMD processors ---
2094 if test "$proc" = "amdfam10"; then 2094 if test "$proc" = "amdfam10"; then
2095 cc_check -march=$proc $cpuopt=$proc || proc=k8 2095 cc_check -march=$proc $cpuopt=$proc || proc=k8