diff options
author | David Michael <fedora.dm0@gmail.com> | 2020-04-01 00:07:55 -0400 |
---|---|---|
committer | Michael Niedermayer <michael@niedermayer.cc> | 2020-04-03 00:58:07 +0200 |
commit | 9f567c431eb49e5cd4399f54de433422f5b9b9c4 (patch) | |
tree | ec7d3cd533f6da4c840137e8d1a7ac2bcdc96604 /configure | |
parent | 45cb93e9bddcd6395171e99717623e9adbcf700e (diff) |
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@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |