summaryrefslogtreecommitdiff
path: root/utils
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2009-11-06 04:11:29 +0000
committerDaniel Dunbar <daniel@zuster.org>2009-11-06 04:11:29 +0000
commit2d7adb5f5af463f293b7a9ba4ddea937a29b03c9 (patch)
treea1a8b31acc031e195b87a9ac5d33cec404308ff6 /utils
parentdf98761d08ae091420b7e9c1366de7684400fc36 (diff)
downloadllvm-2d7adb5f5af463f293b7a9ba4ddea937a29b03c9.tar.gz
llvm-2d7adb5f5af463f293b7a9ba4ddea937a29b03c9.tar.bz2
llvm-2d7adb5f5af463f293b7a9ba4ddea937a29b03c9.tar.xz
NewNightlyTest: Add -llvmgccdir as alternative to environment variable.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@86226 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'utils')
-rwxr-xr-xutils/NewNightlyTest.pl23
1 files changed, 15 insertions, 8 deletions
diff --git a/utils/NewNightlyTest.pl b/utils/NewNightlyTest.pl
index ed22b77f99..acda7064e7 100755
--- a/utils/NewNightlyTest.pl
+++ b/utils/NewNightlyTest.pl
@@ -53,6 +53,7 @@ use Socket;
# building LLVM.
# -use-gmake Use gmake instead of the default make command to build
# llvm and run tests.
+# -llvmgccdir Next argument specifies the llvm-gcc install prefix.
#
# TESTING OPTIONS:
# -notest Do not even attempt to run the test programs.
@@ -147,6 +148,14 @@ $SUBMIT = 1;
$PARALLELJOBS = "2";
my $TESTFLAGS="";
+if ($ENV{'LLVMGCCDIR'}) {
+ $CONFIGUREARGS .= " --with-llvmgccdir=" . $ENV{'LLVMGCCDIR'};
+ $LLVMGCCPATH = $ENV{'LLVMGCCDIR'} . '/bin';
+}
+else {
+ $LLVMGCCPATH = "";
+}
+
while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
shift;
last if /^--$/; # Stop processing arguments on --
@@ -211,6 +220,10 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
if (/^-test-cxxflags/) { $TESTFLAGS = "$TESTFLAGS CXXFLAGS=\'$ARGV[0]\'";
shift; next; }
if (/^-compileflags/) { $MAKEOPTS = "$MAKEOPTS $ARGV[0]"; shift; next; }
+ if (/^-llvmgccdir/) { $CONFIGUREARGS .= " --with-llvmgccdir=\'$ARGV[0]\'";
+ $LLVMGCCPATH = $ARGV[0] . '/bin';
+ shift; next;}
+ if (/^-noexternals$/) { $NOEXTERNALS = 1; next; }
if (/^-use-gmake/) { $MAKECMD = "gmake"; shift; next; }
if (/^-extraflags/) { $CONFIGUREARGS .=
" --with-extra-options=\'$ARGV[0]\'"; shift; next;}
@@ -220,14 +233,6 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
print "Unknown option: $_ : ignoring!\n";
}
-if ($ENV{'LLVMGCCDIR'}) {
- $CONFIGUREARGS .= " --with-llvmgccdir=" . $ENV{'LLVMGCCDIR'};
- $LLVMGCCPATH = $ENV{'LLVMGCCDIR'} . '/bin';
-}
-else {
- $LLVMGCCPATH = "";
-}
-
if ($CONFIGUREARGS !~ /--disable-jit/) {
$CONFIGUREARGS .= " --enable-jit";
}
@@ -758,6 +763,8 @@ if ($GCCPATH ne "") {
my $gcc_version = (split '\n', $gcc_version_long)[0];
# Get llvm-gcc target triple.
+#
+# FIXME: This shouldn't be hardwired to llvm-gcc.
my $llvmgcc_version_long = "";
if ($LLVMGCCPATH ne "") {
$llvmgcc_version_long = `$LLVMGCCPATH/llvm-gcc -v 2>&1`;