diff options
| author | Patrick Jenkins <pjenkins@apple.com> | 2006-07-14 20:44:09 +0000 |
|---|---|---|
| committer | Patrick Jenkins <pjenkins@apple.com> | 2006-07-14 20:44:09 +0000 |
| commit | 9536ec7f3989921a6e6c3c362bf77ffb5e7b1394 (patch) | |
| tree | 1bfb7739ae0ef80880329dce14a004bd509caf52 | |
| parent | 7c1018aef712c738fb49caa6662a2d4caccea69b (diff) | |
| download | bcm5719-llvm-9536ec7f3989921a6e6c3c362bf77ffb5e7b1394.tar.gz bcm5719-llvm-9536ec7f3989921a6e6c3c362bf77ffb5e7b1394.zip | |
Fixed an issue where the user specified gcc was not the gcc we report to the nightly test server.
llvm-svn: 29144
| -rwxr-xr-x | llvm/utils/NewNightlyTest.pl | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/llvm/utils/NewNightlyTest.pl b/llvm/utils/NewNightlyTest.pl index a5d669ff7e6..6eabad1e377 100755 --- a/llvm/utils/NewNightlyTest.pl +++ b/llvm/utils/NewNightlyTest.pl @@ -138,7 +138,10 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { $CONFIGUREARGS .= "--with-externals=$ARGV[0]"; shift; next; } if (/^-nickname$/) { $nickname = "$ARGV[0]"; shift; next; } - if (/^-gccpath/) { $CONFIGUREARGS .= " CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++"; shift; next;} + if (/^-gccpath/) { $CONFIGUREARGS .= " CC=$ARGV[0]/gcc CXX=$ARGV[0]/g++"; + $GCCPATH=$ARGV[0]; + shift; + next;} if (/^-cvstag/) { $CVSCOOPT .= " -r $ARGV[0]"; shift; next; } else{ $CVSCOOPT="";} if (/^-target/) { $CONFIGUREARGS .= " --target=$ARGV[0]"; shift; next; @@ -953,7 +956,12 @@ my $dejagnulog_full; @DEJAGNULOG_FULL = ReadFile "$DejagnuTestsLog"; $dejagnulog_full = join("\n", @DEJAGNULOG_FULL); -my $gcc_version_long = `gcc --version`; +if($GCCPATH){ + my $gcc_version_long = `$ARGV[0]/gcc --version`; +} +else{ + my $gcc_version_long = `gcc --version`; +} @GCC_VERSION = split "\n", $gcc_version_long; my $gcc_version = $GCC_VERSION[0]; |

