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 d284fd1145
commit ba1c0cd4e9
1 changed files with 2 additions and 0 deletions

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`;
}