Skip to content

Commit ece3ce5

Browse files
authored
Strip parenthesized (pkgversion) data from GCC version string to avoid misinterpretation
1 parent 8189a98 commit ece3ce5

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)