Revert the last patch so that the LLVMGCCDIR environment variable is
authorReid Spencer <rspencer@reidspencer.com>
Sun, 26 Dec 2004 05:21:13 +0000 (05:21 +0000)
committerReid Spencer <rspencer@reidspencer.com>
Sun, 26 Dec 2004 05:21:13 +0000 (05:21 +0000)
still viable and will make use of the resurrected --with-llvmgccdir
configure option.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@19143 91177308-0d34-0410-b5e6-96231b3b80d8

utils/NightlyTest.pl

index 67c96def3ac414a9a9a535855c2b8068ea41a04c..0c99c6248f3056077f3c6faf7e370a1dc7cc97e4 100755 (executable)
@@ -45,6 +45,8 @@
 # WEBDIR is the directory into which the test results web page will be written,
 #  AND in which the "index.html" is assumed to be a symlink to the most recent
 #  copy of the results. This directory will be created if it does not exist.
+# LLVMGCCDIR is the directory in which the LLVM GCC Front End is installed
+#  to. This is the same as you would have for a normal LLVM build.
 #
 use POSIX qw(strftime);
 use File::Copy;
@@ -280,6 +282,9 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
   print "Unknown option: $_ : ignoring!\n";
 }
 
+if ($ENV{'LLVMGCCDIR'}) {
+  $CONFIGUREARGS .= " --with-llvmgccdir=" . $ENV{'LLVMGCCDIR'};
+}
 if ($CONFIGUREARGS !~ /--disable-jit/) {
   $CONFIGUREARGS .= " --enable-jit";
 }