|
38 | 38 | # testing release branches)
|
39 | 39 | # -target Specify the target triplet
|
40 | 40 | #
|
| 41 | +# ---------------- Options to configure llvm-test ---------------------------- |
| 42 | +# -spec2000path Path to the benchspec directory in the SPEC 2000 distro |
| 43 | +# -spec95path Path to the benchspec directory in the SPEC 95 distro. |
| 44 | +# -povraypath Path to the povray sources |
| 45 | +# -namdpath Path to the namd sources |
| 46 | +# |
41 | 47 | # CVSROOT is the CVS repository from which the tree will be checked out,
|
42 | 48 | # specified either in the full :method:user@host:/dir syntax, or
|
43 | 49 | # just /dir if using a local repo.
|
|
86 | 92 | my $NICE = "";
|
87 | 93 | my $NODEJAGNU = 0;
|
88 | 94 |
|
| 95 | +my $LLVMTESTCONFIGARGS = ""; |
| 96 | + |
89 | 97 | sub ReadFile {
|
90 | 98 | if (open (FILE, $_[0])) {
|
91 | 99 | undef $/;
|
@@ -298,7 +306,18 @@ sub GetDejagnuTestResults { # (filename, log)
|
298 | 306 | }
|
299 | 307 | if (/^-noexternals$/) { $NOEXTERNALS = 1; next; }
|
300 | 308 | if (/^-nodejagnu$/) { $NODEJAGNU = 1; next; }
|
301 |
| - |
| 309 | + if (/^-spec2000path$/) { |
| 310 | + $LLVMTESTCONFIGARGS .= " --enable-spec2000=$ARGV[0]"; shift; next; |
| 311 | + } |
| 312 | + if (/^-spec95path$/) { |
| 313 | + $LLVMTESTCONFIGARGS .= " --enable-spec95=$ARGV[0]"; shift; next; |
| 314 | + } |
| 315 | + if (/^-povraypath$/) { |
| 316 | + $LLVMTESTCONFIGARGS .= " --enable-povray=$ARGV[0]"; shift; next; |
| 317 | + } |
| 318 | + if (/^-namdpath$/) { |
| 319 | + $LLVMTESTCONFIGARGS .= " --enable-namd=$ARGV[0]"; shift; next; |
| 320 | + } |
302 | 321 | print "Unknown option: $_ : ignoring!\n";
|
303 | 322 | }
|
304 | 323 |
|
@@ -410,7 +429,7 @@ sub GetDejagnuTestResults { # (filename, log)
|
410 | 429 | #
|
411 | 430 | if (!$NOCHECKOUT) {
|
412 | 431 | if ( $VERBOSE ) { print "CONFIGURE STAGE\n"; }
|
413 |
| - my $EXTRAFLAGS = "--enable-spec --with-objroot=."; |
| 432 | + my $EXTRAFLAGS = "--enable-spec --with-objroot=.$LLVMTESTCONFIGARGS"; |
414 | 433 | system "(time -p $NICE ./configure $CONFIGUREARGS $EXTRAFLAGS) > $BuildLog 2>&1";
|
415 | 434 |
|
416 | 435 | if ( $VERBOSE ) { print "BUILD STAGE\n"; }
|
|
0 commit comments