mirror of
https://mirror.skon.top/https://github.com/FFmpeg/FFmpeg
synced 2026-05-01 06:13:08 +08:00
configure: strip non numeric trailer from gcc version
Fixes: ../configure: 7820: [: Illegal number: 13-win32 Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
committed by
michaelni
parent
b815431126
commit
b1cbc7c8ff
2
configure
vendored
2
configure
vendored
@@ -7816,7 +7816,7 @@ if enabled icc; then
|
||||
fi
|
||||
elif enabled gcc; then
|
||||
gcc_version=$($cc -dumpversion)
|
||||
major_version=${gcc_version%%.*}
|
||||
major_version=${gcc_version%%[!0-9]*}
|
||||
if [ $major_version -lt 13 ]; then
|
||||
# Disable tree-vectorize for GCC <13 - it has historically been buggy.
|
||||
check_optflags -fno-tree-vectorize
|
||||
|
||||
Reference in New Issue
Block a user