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

Comparing COMP/SCRAM/src/BuildSystem/ToolManager.pm (file contents):
Revision 1.7 by sashby, Wed Apr 6 18:17:15 2005 UTC vs.
Revision 1.8 by sashby, Wed Apr 13 16:45:36 2005 UTC

# Line 227 | Line 227 | sub coresetup()
227     # Make sure that we have this tool in the list of selected tools (just in case this tool was
228     # set up by hand afterwards):
229     $self->addtoselected($toolname);
230 +
231 +   # Check to see if this tool is a compiler. If so, store it.
232 +   # Also store the language that this compiler supprots, and a
233 +   # compiler name (e.g. gcc323) which, in conjunction with a stem
234 +   # architecture name like slc3_ia32_, can be used to build a complete arch string:
235 +   if ($store->scram_compiler() == 1)
236 +      {
237 +      my @supported_language = $store->flags("SCRAM_LANGUAGE_TYPE");
238 +      my @compilername = $store->flags("SCRAM_COMPILER_NAME");
239 +      $self->scram_compiler($supported_language[0],$toolname,$compilername[0]);
240 +      }
241 +  
242     # Store the ToolData object in the cache:
243     $self->storeincache($toolparser->toolname(),$store);
244     return $self;
# Line 526 | Line 538 | sub scram_projects()
538     return $scram_projects;
539     }
540  
541 + sub scram_compiler()
542 +   {
543 +   my $self=shift;
544 +   my ($langtype, $toolname, $compilername)=@_;
545 +
546 +   if ($langtype)
547 +      {
548 +      # Store the compiler info according to supported
549 +      # language types.
550 +      #
551 +      # ---------------------- e.g C++      cxxcompiler    gcc323
552 +      $self->{SCRAM_COMPILER}->{$langtype}=[ $toolname, $compilername ];
553 +      }
554 +   else
555 +      {
556 +      return $self->{SCRAM_COMPILER};
557 +      }
558 +   }
559 +
560   1;

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines