Ignore:
Timestamp:
Mar 4, 2012, 9:43:53 AM (13 years ago)
Author:
chronos
Message:
  • Fixed: Selection of target.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Compiler/UCompiler.pas

    r41 r44  
    4848
    4949uses
    50   UTargets;
     50  UTargets, UAnalyzerPascal;
    5151
    5252resourcestring
     
    6363constructor TCompiler.Create;
    6464begin
     65  Analyzer := TAnalyzerPascal.Create;
    6566  Targets := TListTarget.Create;
    6667  SourceFiles := TListString.Create;
     
    148149  TargetFileName: string;
    149150begin
     151  if Assigned(Target.Producer) then
    150152  try
    151153    ProducedCode := TStringList.Create;
     
    155157      Target.Producer.AssignToStringList(ProducedCode);
    156158      TargetFileName := TargetFolder + DirectorySeparator +
    157         CompiledFolder + DirectorySeparator + Target.Producer.Name +
     159        CompiledFolder + DirectorySeparator + Target.Name +
    158160        DirectorySeparator + TModule(Modules[I]).TargetFile;
    159161      ForceDirectoriesUTF8(ExtractFileDir(TargetFileName));
Note: See TracChangeset for help on using the changeset viewer.