Commit 9f567c43 authored by David Michael's avatar David Michael Committed by 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: 's avatarDavid Michael <fedora.dm0@gmail.com>
Signed-off-by: 's avatarMichael Niedermayer <michael@niedermayer.cc>
parent 45cb93e9
...@@ -4797,7 +4797,7 @@ fi ...@@ -4797,7 +4797,7 @@ fi
if test "$cpu" = host; then if test "$cpu" = host; then
enabled cross_compile && 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 case "$cc_type" in
gcc|llvm_gcc) gcc|llvm_gcc)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment