[FFmpeg-cvslog] configure: Do not abort when cross-compiling to the native CPU

David Michael git at videolan.org
Fri Apr 3 01:59:03 EEST 2020


ffmpeg | branch: master | David Michael <fedora.dm0 at gmail.com> | Wed Apr  1 00:07:55 2020 -0400| [9f567c431eb49e5cd4399f54de433422f5b9b9c4] | committer: Michael Niedermayer

configure: Do not abort when cross-compiling to the native CPU

Using a compiler with a different host triplet is considered
cross-compiling, even when it is for the same architecture as the
build system.  With such a cross-compiler, it is still valid to
optimize builds with --cpu=host.  Make the condition that aborts in
this case into a warning instead, since a cross-compiler for an
incompatible architecture will fail with -mtune=native anyway.

Signed-off-by: David Michael <fedora.dm0 at gmail.com>
Signed-off-by: Michael Niedermayer <michael at niedermayer.cc>

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

 configure | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/configure b/configure
index 21827eeb45..251b6a977a 100755
--- a/configure
+++ b/configure
@@ -4797,7 +4797,7 @@ fi
 
 if test "$cpu" = host; then
     enabled cross_compile &&
-        die "--cpu=host makes no sense when cross-compiling."
+        warn "--cpu=host makes no sense when cross-compiling."
 
     case "$cc_type" in
         gcc|llvm_gcc)



More information about the ffmpeg-cvslog mailing list