Correctly report version of GCC used.

llvm-svn: 35866
This commit is contained in:
Jeff Cohen 2007-04-10 19:13:43 +00:00
parent 4e19c7b1db
commit 8d7aaa4843

View File

@ -1050,6 +1050,8 @@ my ($gcc_version, $gcc_version_long) = "";
$gcc_version_long="";
if ($GCCPATH ne "") {
$gcc_version_long = `$GCCPATH/gcc --version`;
} elsif ($ENV{"CC"}) {
$gcc_version_long = `$ENV{"CC"} --version`;
} else {
$gcc_version_long = `gcc --version`;
}