harden against a dashed suffix to the gcc version number

This commit is contained in:
Martin Kroeker 2024-07-27 19:08:02 +02:00 committed by GitHub
parent 886acfc444
commit 175008caf8
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
oldgcc=0
data=`$compiler_name -dumpversion`
case "$data" in *-*)
data="${data%-*}"
esac
case "$data" in *.*.*)
data="${data%.*}"
esac