Browse Source
Merge pull request #4822 from martin-frbg/issue4821
Fix c_check to tolerate a dashed suffix to the gcc version number
tags/v0.3.28^2
Martin Kroeker
GitHub
1 year ago
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
3 additions and
0 deletions
-
c_check
|
|
@@ -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 |
|
|
|