ViewVC Help
View File | Revision Log | Show Annotations | Root Listing
root/cvsroot/COMP/SCRAM/src/BuildSystem/BuildSetup.pm
(Generate patch)

Comparing COMP/SCRAM/src/BuildSystem/BuildSetup.pm (file contents):
Revision 1.15 by sashby, Wed Aug 22 12:40:13 2001 UTC vs.
Revision 1.20 by sashby, Fri Nov 9 16:49:45 2001 UTC

# Line 248 | Line 248 | sub BuildSetup
248     # Do a datestamp check so that make will build files that have changed
249     # rather than just those which are older than their dependencies
250     # The main build here
251   $rv=system("gmake","--no-print-directory","-r","-k","-f","$ENV{DefaultMakefile}","-I$ENV{TOOL_HOME}",datestamp_config);
251  
252 <   print "\n","scram BUILDSYSTEM: V1.0  ****","\n";
252 >   $rv=system("gmake","--no-print-directory","-r","-k","-f","$ENV{DefaultMakefile}","-I$ENV{TOOL_HOME}",datestamp_config);
253  
254     my $gmakejobsflag = "-j";
255 <   chomp(my $currentOS = `uname`);
256 <  
257 <   # Only use -j option if there are more then 1 cpu's.....
259 <   if ( $currentOS eq "Linux" )
260 <      {
261 <      chomp($ncpu=`cat /proc/cpuinfo | grep -c processor`);
262 <      }
263 <   elsif ( $currentOS eq "SunOS" )
264 <      # How can you tell how many CPUs you've got in a Sun box?:
265 <      {
266 <      $ncpu = 1;
267 <      }
268 <   else
269 <      # Who knows what the OS is. Leave as default:
270 <      {
271 <      $npcu = 1;
272 <      }
273 <  
274 <   # Modify: try to force make to spawn more than one job (option: -j ).
255 >   # Temporarily hard-code ncpu as 1:
256 >   my $ncpu = 1;
257 >
258     $rv=system("gmake","--no-print-directory","$gmakejobsflag","$ncpu","-r","-k","-f","$ENV{DefaultMakefile}","-I$ENV{TOOL_HOME}",datestamp, @Targets);
259 +
260     return $rv/256; # return the exit status of gmake
261     }
262  
# Line 282 | Line 266 | sub getclass {
266      my $Class="DEFAULT";
267      my $ClassDir="";
268          
285    #return if $dirname eq "";
269      @DIRA=split /\//, $dirname;
270  
271      $thispath=".";

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines