Skip to content

Commit b28db31

Browse files
authored
Support two-digit version numbers in gcc version check
fixes #2336 (non-recognition of gcc 10) with patch provided by JeffreyALaw.
1 parent 1070518 commit b28db31

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

f_check

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ if ($compiler eq "") {
7171

7272
if ($data =~ /GNU/) {
7373

74-
$data =~ /(\d)\.(\d).(\d)/;
74+
$data =~ /(\d+)\.(\d+).(\d+)/;
7575
$major = $1;
7676
$minor = $2;
7777

0 commit comments

Comments
 (0)