Support two-digit version numbers in gcc version check

fixes #2336 (non-recognition of gcc 10) with patch provided by JeffreyALaw.
This commit is contained in:
Martin Kroeker 2019-12-06 21:23:56 +01:00 committed by GitHub
parent 10705183ce
commit b28db31429
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ if ($compiler eq "") {
if ($data =~ /GNU/) {
$data =~ /(\d)\.(\d).(\d)/;
$data =~ /(\d+)\.(\d+).(\d+)/;
$major = $1;
$minor = $2;