[FFmpeg-cvslog] configure: support --cpu=host and Clang

yukari yakumo git at videolan.org
Wed Dec 30 23:28:53 CET 2015


ffmpeg | branch: master | yukari yakumo <yukariin at yandex.ru> | Mon Dec 14 18:11:00 2015 +0300| [f87e29a61587558e441dea3511db76611de9d92e] | committer: Michael Niedermayer

configure: support --cpu=host and Clang

Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

> http://git.videolan.org/gitweb.cgi/ffmpeg.git/?a=commit;h=f87e29a61587558e441dea3511db76611de9d92e
---

 configure |   11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/configure b/configure
index 7fee737..da74ccd 100755
--- a/configure
+++ b/configure
@@ -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 &&



More information about the ffmpeg-cvslog mailing list