yet another change to get the correct gcc version for the nightly test results.
authorPatrick Jenkins <pjenkins@apple.com>
Tue, 18 Jul 2006 21:21:53 +0000 (21:21 +0000)
committerPatrick Jenkins <pjenkins@apple.com>
Tue, 18 Jul 2006 21:21:53 +0000 (21:21 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29188 91177308-0d34-0410-b5e6-96231b3b80d8

utils/NewNightlyTest.pl

index 4549acd5b21e688891896fa46b72ea81fc021ac7..bdc65aeab0c0586e59b079fbb571006d42fe3365 100755 (executable)
@@ -961,15 +961,16 @@ my $dejagnulog_full;
 @DEJAGNULOG_FULL = ReadFile "$DejagnuTestsLog";
 $dejagnulog_full = join("\n", @DEJAGNULOG_FULL);
 
+my $gcc_version_long="";
 if($GCCPATH ne ""){
-  my $gcc_version_long = `$GCCPATH/gcc --version`;
+  $gcc_version_long = `$GCCPATH/gcc --version`;
   print "$GCCPATH/gcc --version\n";
 }
 else{
-  my $gcc_version_long = `gcc --version`;
+  $gcc_version_long = `gcc --version`;
   print "gcc --version\n";
 }
-@GCC_VERSION = split "\n", $gcc_version_long;
+@GCC_VERSION = split '\n', $gcc_version_long;
 my $gcc_version = $GCC_VERSION[0];
 
 ##############################################################