Skip to content

Commit

Permalink
Merge pull request #67 from mitya57/master
Browse files Browse the repository at this point in the history
Fix detection of GCC 7 compiled with --with-gcc-major-version-only
  • Loading branch information
lvc authored Mar 24, 2018
2 parents 1c30473 + 319c1ae commit 95981f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/Internals/SysFiles.pm
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ sub detectDefaultPaths($$$$)
printMsg("INFO", "Using GCC $GccVer ($Target, target: ".getArch_GCC(1).")");

# check GCC version
if($GccVer=~/\A(4\.8(|\.[012])|[67]\..*)\Z/ or cmpVersions($GccVer, "8")>=0)
if($GccVer=~/\A(4\.8(|\.[012])|[67](\..*)?)\Z/ or cmpVersions($GccVer, "8")>=0)
{ # GCC 4.8.[0-2]: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=57850
# GCC 6.[1-2].0: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=78040
# GCC 7.1: still the same issue ...
Expand Down

0 comments on commit 95981f2

Please sign in to comment.