Skip to content

Commit a33f471

Browse files
authored
Merge pull request #3102 from martin-frbg/issue3099
Strip pkgversion info from compiler version string before comparing
2 parents 3e1e74f + ece3ce5 commit a33f471

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

f_check

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ if ($compiler eq "") {
7575

7676
} elsif ($data =~ /GNU/ || $data =~ /GCC/ ) {
7777

78+
$data =~ s/\(+.*?\)+//g;
7879
$data =~ /(\d+)\.(\d+).(\d+)/;
7980
$major = $1;
8081
$minor = $2;

0 commit comments

Comments
 (0)