Merge pull request #4822 from martin-frbg/issue4821

Fix c_check to tolerate a dashed suffix to the gcc version number
This commit is contained in:
Martin Kroeker 2024-07-27 20:28:06 +02:00 committed by GitHub
commit 05bf35f296
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 0 deletions

View File

@ -356,6 +356,9 @@ if [ "$compiler" = "GCC" ]; then
no_avx2=0 no_avx2=0
oldgcc=0 oldgcc=0
data=`$compiler_name -dumpversion` data=`$compiler_name -dumpversion`
case "$data" in *-*)
data="${data%-*}"
esac
case "$data" in *.*.*) case "$data" in *.*.*)
data="${data%.*}" data="${data%.*}"
esac esac