TRICK_HOST_CPU incorrect with gcc 7 #598 (#816)

Changed the regular expression that grabs the gcc version to accept
either 1 digit or 2.
This commit is contained in:
Alex Lin 2019-06-18 11:00:21 -05:00 committed by GitHub
parent 497f11f132
commit 04d50df7cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ sub gte (@) {
else {
$ret = `gcc -dumpversion` ;
}
($gcc_version) = $ret =~ /(\d+\.\d+)/ ;
($gcc_version) = $ret =~ /(\d+(?:\.\d+)?)/ ;
if ( $system_type eq "Linux" ) {
$def{"TRICK_HOST_CPU"} = $system_type . "_" . $gcc_version ;