mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-09 11:25:55 +00:00
NNT: Don't hard code -l3.0 argument to make, this is very server dependent. Users who care can use -compileflags for this.
Also, fix make clean call and a few other tweaks. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@84496 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -159,7 +159,7 @@ while (scalar(@ARGV) and ($_ = $ARGV[0], /^[-+]/)) {
|
|||||||
if (/^-notest$/) { $NOTEST = 1; next; }
|
if (/^-notest$/) { $NOTEST = 1; next; }
|
||||||
if (/^-norunningtests$/) { next; } # Backward compatibility, ignored.
|
if (/^-norunningtests$/) { next; } # Backward compatibility, ignored.
|
||||||
if (/^-parallel-jobs$/) { $PARALLELJOBS = "$ARGV[0]"; shift; next;}
|
if (/^-parallel-jobs$/) { $PARALLELJOBS = "$ARGV[0]"; shift; next;}
|
||||||
if (/^-parallel$/) { $MAKEOPTS = "$MAKEOPTS -j$PARALLELJOBS -l3.0"; next; }
|
if (/^-parallel$/) { $MAKEOPTS = "$MAKEOPTS -j$PARALLELJOBS"; next; }
|
||||||
if (/^-with-clang$/) { $WITHCLANG = 1; next; }
|
if (/^-with-clang$/) { $WITHCLANG = 1; next; }
|
||||||
if (/^-release$/) { $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1 ".
|
if (/^-release$/) { $MAKEOPTS = "$MAKEOPTS ENABLE_OPTIMIZED=1 ".
|
||||||
"OPTIMIZE_OPTION=-O2"; $BUILDTYPE="release"; next;}
|
"OPTIMIZE_OPTION=-O2"; $BUILDTYPE="release"; next;}
|
||||||
@@ -360,7 +360,7 @@ sub ChangeDir { # directory, logical name
|
|||||||
if ( $VERBOSE ) { print "Changing To: $name ($dir)\n"; }
|
if ( $VERBOSE ) { print "Changing To: $name ($dir)\n"; }
|
||||||
$result = chdir($dir);
|
$result = chdir($dir);
|
||||||
if (!$result) {
|
if (!$result) {
|
||||||
print "ERROR!!! Cannot change directory to: $name ($dir) because $!";
|
print "ERROR!!! Cannot change directory to: $name ($dir) because $!\n";
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
@@ -534,7 +534,7 @@ sub BuildLLVM {
|
|||||||
RunLoggedCommand("(time -p $NICE ./configure $CONFIGUREARGS $EXTRAFLAGS) ",
|
RunLoggedCommand("(time -p $NICE ./configure $CONFIGUREARGS $EXTRAFLAGS) ",
|
||||||
$ConfigureLog, "CONFIGURE");
|
$ConfigureLog, "CONFIGURE");
|
||||||
# Build the entire tree, capturing the output into $BuildLog
|
# Build the entire tree, capturing the output into $BuildLog
|
||||||
RunAppendingLoggedCommand("($NICE $MAKECMD clean)", $BuildLog, "BUILD CLEAN");
|
RunAppendingLoggedCommand("($NICE $MAKECMD $MAKEOPTS clean)", $BuildLog, "BUILD CLEAN");
|
||||||
RunAppendingLoggedCommand("(time -p $NICE $MAKECMD $MAKEOPTS)", $BuildLog, "BUILD");
|
RunAppendingLoggedCommand("(time -p $NICE $MAKECMD $MAKEOPTS)", $BuildLog, "BUILD");
|
||||||
|
|
||||||
if (`grep '^$MAKECMD\[^:]*: .*Error' $BuildLog | wc -l` + 0 ||
|
if (`grep '^$MAKECMD\[^:]*: .*Error' $BuildLog | wc -l` + 0 ||
|
||||||
@@ -549,6 +549,7 @@ sub BuildLLVM {
|
|||||||
sub RunDejaGNUTests {
|
sub RunDejaGNUTests {
|
||||||
# Run the feature and regression tests, results are put into testrun.sum and
|
# Run the feature and regression tests, results are put into testrun.sum and
|
||||||
# the full log in testrun.log.
|
# the full log in testrun.log.
|
||||||
|
system "rm -f test/testrun.log test/testrun.sum";
|
||||||
RunLoggedCommand("(time -p $MAKECMD $MAKEOPTS check)", $DejagnuLog, "DEJAGNU");
|
RunLoggedCommand("(time -p $MAKECMD $MAKEOPTS check)", $DejagnuLog, "DEJAGNU");
|
||||||
|
|
||||||
# Copy the testrun.log and testrun.sum to our webdir.
|
# Copy the testrun.log and testrun.sum to our webdir.
|
||||||
@@ -686,6 +687,9 @@ if (!$NOTEST && !$BuildError) {
|
|||||||
|
|
||||||
$endtime = `date "+20%y-%m-%d %H:%M:%S"`;
|
$endtime = `date "+20%y-%m-%d %H:%M:%S"`;
|
||||||
|
|
||||||
|
# The last bit of logic is to remove the build and web dirs, after sending data
|
||||||
|
# to the server.
|
||||||
|
|
||||||
##############################################################
|
##############################################################
|
||||||
#
|
#
|
||||||
# Accumulate the information to send to the server.
|
# Accumulate the information to send to the server.
|
||||||
@@ -722,8 +726,6 @@ if ($LLVMGCCPATH ne "") {
|
|||||||
(split '\n', $llvmgcc_version_long)[1] =~ /Target: (.+)/;
|
(split '\n', $llvmgcc_version_long)[1] =~ /Target: (.+)/;
|
||||||
my $targetTriple = $1;
|
my $targetTriple = $1;
|
||||||
|
|
||||||
if ( $VERBOSE ) { print "SEND THE DATA VIA THE POST REQUEST\n"; }
|
|
||||||
|
|
||||||
# Logs.
|
# Logs.
|
||||||
my $ConfigureLogData = ReadFile $ConfigureLog;
|
my $ConfigureLogData = ReadFile $ConfigureLog;
|
||||||
my $BuildLogData = ReadFile $BuildLog;
|
my $BuildLogData = ReadFile $BuildLog;
|
||||||
@@ -760,6 +762,8 @@ $DejagnuWallTime = GetRegex "^real ([0-9.]+)", $DejagnuLogData;
|
|||||||
$DejagnuTime = "0.0" unless $DejagnuTime;
|
$DejagnuTime = "0.0" unless $DejagnuTime;
|
||||||
$DejagnuWallTime = "0.0" unless $DejagnuWallTime;
|
$DejagnuWallTime = "0.0" unless $DejagnuWallTime;
|
||||||
|
|
||||||
|
if ( $VERBOSE ) { print "SEND THE DATA VIA THE POST REQUEST\n"; }
|
||||||
|
|
||||||
my %hash_of_data = (
|
my %hash_of_data = (
|
||||||
'machine_data' => $machine_data,
|
'machine_data' => $machine_data,
|
||||||
'build_data' => $ConfigureLogData . $BuildLogData,
|
'build_data' => $ConfigureLogData . $BuildLogData,
|
||||||
@@ -773,6 +777,22 @@ my %hash_of_data = (
|
|||||||
'configtime_cpu'=> $ConfigTime,
|
'configtime_cpu'=> $ConfigTime,
|
||||||
'buildtime_wall' => $BuildWallTime,
|
'buildtime_wall' => $BuildWallTime,
|
||||||
'buildtime_cpu' => $BuildTime,
|
'buildtime_cpu' => $BuildTime,
|
||||||
|
'buildstatus' => $BuildStatus,
|
||||||
|
'singlesource_programstable' => $SingleSourceProgramsTable,
|
||||||
|
'multisource_programstable' => $MultiSourceProgramsTable,
|
||||||
|
'externalsource_programstable' => $ExternalProgramsTable,
|
||||||
|
'llcbeta_options' => $llcbeta_options,
|
||||||
|
'passing_tests' => $passes,
|
||||||
|
'expfail_tests' => $xfails,
|
||||||
|
'unexpfail_tests' => $fails,
|
||||||
|
'all_tests' => $all_tests,
|
||||||
|
'dejagnutests_results' => $DejagnuTestResults,
|
||||||
|
'dejagnutests_log' => $DejagnuLogData,
|
||||||
|
'starttime' => $starttime,
|
||||||
|
'endtime' => $endtime,
|
||||||
|
'target_triple' => $targetTriple,
|
||||||
|
|
||||||
|
# Unused, but left around for backwards compatability.
|
||||||
'warnings' => "",
|
'warnings' => "",
|
||||||
'cvsusercommitlist' => "",
|
'cvsusercommitlist' => "",
|
||||||
'cvsuserupdatelist' => "",
|
'cvsuserupdatelist' => "",
|
||||||
@@ -782,26 +802,12 @@ my %hash_of_data = (
|
|||||||
'lines_of_code' => "",
|
'lines_of_code' => "",
|
||||||
'cvs_file_count' => 0,
|
'cvs_file_count' => 0,
|
||||||
'cvs_dir_count' => 0,
|
'cvs_dir_count' => 0,
|
||||||
'buildstatus' => $BuildStatus,
|
|
||||||
'singlesource_programstable' => $SingleSourceProgramsTable,
|
|
||||||
'multisource_programstable' => $MultiSourceProgramsTable,
|
|
||||||
'externalsource_programstable' => $ExternalProgramsTable,
|
|
||||||
'llcbeta_options' => $llcbeta_options,
|
|
||||||
'warnings_removed' => "",
|
'warnings_removed' => "",
|
||||||
'warnings_added' => "",
|
'warnings_added' => "",
|
||||||
'passing_tests' => $passes,
|
|
||||||
'expfail_tests' => $xfails,
|
|
||||||
'unexpfail_tests' => $fails,
|
|
||||||
'all_tests' => $all_tests,
|
|
||||||
'new_tests' => "",
|
'new_tests' => "",
|
||||||
'removed_tests' => "",
|
'removed_tests' => "",
|
||||||
'dejagnutests_results' => $DejagnuTestResults,
|
|
||||||
'dejagnutests_log' => $DejagnuLogData,
|
|
||||||
'starttime' => $starttime,
|
|
||||||
'endtime' => $endtime,
|
|
||||||
'o_file_sizes' => "",
|
'o_file_sizes' => "",
|
||||||
'a_file_sizes' => "",
|
'a_file_sizes' => ""
|
||||||
'target_triple' => $targetTriple
|
|
||||||
);
|
);
|
||||||
|
|
||||||
if ($SUBMIT || !($SUBMITAUX eq "")) {
|
if ($SUBMIT || !($SUBMITAUX eq "")) {
|
||||||
|
Reference in New Issue
Block a user