diff options
| author | Daniel Dunbar <daniel@zuster.org> | 2009-05-28 22:45:24 +0000 |
|---|---|---|
| committer | Daniel Dunbar <daniel@zuster.org> | 2009-05-28 22:45:24 +0000 |
| commit | e88a7d518ef8df6afee95ffef57c2d62e9794530 (patch) | |
| tree | 47ea5da5709e823d23ec61a4884f70d137f10a67 | |
| parent | e4b43e60b392c5ca55848139bfb271c9d7beca34 (diff) | |
| download | bcm5719-llvm-e88a7d518ef8df6afee95ffef57c2d62e9794530.tar.gz bcm5719-llvm-e88a7d518ef8df6afee95ffef57c2d62e9794530.zip | |
NewNightlyTest.pl: Add a -parallel-jobs argument (set # of jobs for make with
-parallel, instead of always using 2).
llvm-svn: 72551
| -rwxr-xr-x | llvm/utils/NewNightlyTest.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/llvm/utils/NewNightlyTest.pl b/llvm/utils/NewNightlyTest.pl index 6837dc0e729..9672632fa27 100755 --- a/llvm/utils/NewNightlyTest.pl +++ b/llvm/utils/NewNightlyTest.pl @@ -27,7 +27,8 @@ use Socket; # -norunningtests Do not run the Olden benchmark suite with # LARGE_PROBLEM_SIZE enabled. # -nodejagnu Do not run feature or regression tests -# -parallel Run two parallel jobs with GNU Make. +# -parallel Run parallel jobs with GNU Make (see -parallel-jobs). +# -parallel-jobs The number of parallel Make jobs to use (default is two). # -release Build an LLVM Release version # -release-asserts Build an LLVM ReleaseAsserts version # -enable-llcbeta Enable testing of beta features in llc. @@ -133,6 +134,7 @@ $SUBMITSERVER = "llvm.org"; $SUBMITSCRIPT = "/nightlytest/NightlyTestAccept.php"; $SUBMITAUX=""; $SUBMIT = 1; +$PARALLELJOBS = "2"; while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { shift; @@ -145,7 +147,8 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) { if (/^-noremoveresults$/){ $NOREMOVERESULTS = 1; next; } if (/^-notest$/) { $NOTEST = 1; $NORUNNINGTESTS = 1; next; } if (/^-norunningtests$/) { $NORUNNINGTESTS = 1; next; } - if (/^-parallel$/) { $MAKEOPTS = "$MAKEOPTS -j2 -l3.0"; next; } + if (/^-parallel-jobs$/) { $PARALLELJOBS = "$ARGV[0]"; shift; next;} + if (/^-parallel$/) { $MAKEOPTS = "$MAKEOPTS -j$PARALLELJOBS -l3.0"; next; } if (/^-release$/) { $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1 ". "OPTIMIZE_OPTION=-O2"; $BUILDTYPE="release"; next;} if (/^-release-asserts$/){ $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1 ". |

