Browse Source

Strip parenthesized (pkgversion) data from GCC version string to avoid misinterpretation

tags/v0.3.14^2
Martin Kroeker GitHub 5 years ago
parent
commit
ece3ce581e
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions
  1. +1
    -0
      f_check

+ 1
- 0
f_check View File

@@ -75,6 +75,7 @@ if ($compiler eq "") {

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

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


Loading…
Cancel
Save