[MPlayer-cvslog] r38195 - trunk/configure

reimar subversion at mplayerhq.hu
Sun Aug 30 18:51:29 EEST 2020


Author: reimar
Date: Sun Aug 30 18:51:28 2020
New Revision: 38195

Log:
configure: allow using --enable-runtime-cpudetection for Arm builds.

This is mostly to allow undoing the effects of the previous
patch which adds -march=native if it is not set

Modified:
   trunk/configure

Modified: trunk/configure
==============================================================================
--- trunk/configure	Sun Aug 30 18:27:41 2020	(r38194)
+++ trunk/configure	Sun Aug 30 18:51:28 2020	(r38195)
@@ -1920,7 +1920,7 @@ fi
 echo "Detected operating system: $system_name"
 echo "Detected host architecture: $host_arch"
 
-if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc; then
+if test "$_runtime_cpudetection" = yes && ! x86 && ! ppc && ! arm; then
   die "Runtime CPU detection only works for x86, x86-64 and PPC!"
 fi
 
@@ -9716,6 +9716,14 @@ If you suspect a bug, please read DOCS/H
 
 EOF
 
+if test "$_runtime_cpudetection" = yes && arm; then
+  cat << EOF
+WARNING: --enable-runtime-cpudetection is not fully supported on Arm,
+it only compiles for your compilers default target instead of the host
+CPU (-match=native).
+EOF
+fi
+
 if test "$warn_cflags" = yes; then
   cat <<EOF
 


More information about the MPlayer-cvslog mailing list