From: Jeff Cohen Date: Tue, 10 Apr 2007 19:13:43 +0000 (+0000) Subject: Correctly report version of GCC used. X-Git-Url: http://plrg.eecs.uci.edu/git/?a=commitdiff_plain;h=7545422f088f4d71ab26bf4c2f8971cdfcd35c2b;p=oota-llvm.git Correctly report version of GCC used. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@35866 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl index c04e66e0167..ea54335a065 100755 --- a/utils/NewNightlyTest.pl +++ b/utils/NewNightlyTest.pl @@ -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`; }