mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-30 11:10:23 +02:00
IDE: use compiler of project for FPCVer and codetools macro values
git-svn-id: trunk@44141 -
This commit is contained in:
parent
fcf6ed2f5d
commit
88780a9aaa
@ -950,6 +950,7 @@ function ParseFPCInfo(FPCInfo: string; InfoTypes: TFPCInfoTypes;
|
|||||||
out Infos: TFPCInfoStrings): boolean;
|
out Infos: TFPCInfoStrings): boolean;
|
||||||
function RunFPCInfo(const CompilerFilename: string;
|
function RunFPCInfo(const CompilerFilename: string;
|
||||||
InfoTypes: TFPCInfoTypes; const Options: string =''): string;
|
InfoTypes: TFPCInfoTypes; const Options: string =''): string;
|
||||||
|
function IsFPCompiler(AFilename: string): boolean;
|
||||||
function ExtractFPCFrontEndParameters(const CmdLine: string): string;
|
function ExtractFPCFrontEndParameters(const CmdLine: string): string;
|
||||||
function SplitFPCVersion(const FPCVersionString: string;
|
function SplitFPCVersion(const FPCVersionString: string;
|
||||||
out FPCVersion, FPCRelease, FPCPatch: integer): boolean;
|
out FPCVersion, FPCRelease, FPCPatch: integer): boolean;
|
||||||
@ -1359,6 +1360,35 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function IsFPCompiler(aFilename: string): boolean;
|
||||||
|
var
|
||||||
|
ShortFilename: String;
|
||||||
|
begin
|
||||||
|
Result:=false;
|
||||||
|
AFilename:=ResolveDots(aFilename);
|
||||||
|
//debugln(['IsFPCompiler START ',aFilename]);
|
||||||
|
if aFilename='' then
|
||||||
|
exit;
|
||||||
|
if not FileExistsCached(AFilename) then
|
||||||
|
exit;
|
||||||
|
if DirPathExistsCached(AFilename) then
|
||||||
|
exit;
|
||||||
|
if not FileIsExecutableCached(AFilename) then
|
||||||
|
exit;
|
||||||
|
|
||||||
|
// allow scripts like fpc.sh and fpc.bat
|
||||||
|
ShortFilename:=ExtractFileNameOnly(AFilename);
|
||||||
|
//debugln(['IsFPCompiler Short=',ShortFilename]);
|
||||||
|
if CompareFilenames(ShortFilename,'fpc')=0 then
|
||||||
|
exit(true);
|
||||||
|
|
||||||
|
// allow ppcxxx.exe
|
||||||
|
if (CompareFilenames(copy(ShortFilename,1,3),'ppc')=0)
|
||||||
|
and ((ExeExt='') or (LazFileUtils.CompareFileExt(ShortFilename,ExeExt)=0))
|
||||||
|
then
|
||||||
|
exit(true);
|
||||||
|
end;
|
||||||
|
|
||||||
function ExtractFPCFrontEndParameters(const CmdLine: string): string;
|
function ExtractFPCFrontEndParameters(const CmdLine: string): string;
|
||||||
// extract the parameters for the FPC frontend tool fpc.exe
|
// extract the parameters for the FPC frontend tool fpc.exe
|
||||||
// The result is normalized:
|
// The result is normalized:
|
||||||
|
@ -263,6 +263,7 @@ type
|
|||||||
NewOwner: TObject; Flags: TSearchIDEFileFlags;
|
NewOwner: TObject; Flags: TSearchIDEFileFlags;
|
||||||
TryWithoutNumber: boolean): string; virtual; abstract;
|
TryWithoutNumber: boolean): string; virtual; abstract;
|
||||||
function GetTestBuildDirectory: string; virtual; abstract;
|
function GetTestBuildDirectory: string; virtual; abstract;
|
||||||
|
function GetFPCompilerFilename: string; virtual; abstract;
|
||||||
|
|
||||||
// codetools
|
// codetools
|
||||||
function BeginCodeTools: boolean; virtual; abstract;
|
function BeginCodeTools: boolean; virtual; abstract;
|
||||||
|
@ -54,6 +54,7 @@ type
|
|||||||
function GetLCLWidgetType: string; virtual; abstract;
|
function GetLCLWidgetType: string; virtual; abstract;
|
||||||
function GetRunCommandLine: string; virtual; abstract;
|
function GetRunCommandLine: string; virtual; abstract;
|
||||||
|
|
||||||
|
function GetFPCompilerFilename: string; virtual; abstract;
|
||||||
function GetProjectPublishDir: string; virtual; abstract;
|
function GetProjectPublishDir: string; virtual; abstract;
|
||||||
function GetProjectTargetFilename(aProject: TProject): string; virtual; abstract;
|
function GetProjectTargetFilename(aProject: TProject): string; virtual; abstract;
|
||||||
function GetProjectUsesAppBundle: Boolean; virtual; abstract;
|
function GetProjectUsesAppBundle: Boolean; virtual; abstract;
|
||||||
|
@ -179,6 +179,7 @@ type
|
|||||||
function GetLCLWidgetType: string; override;
|
function GetLCLWidgetType: string; override;
|
||||||
function GetRunCommandLine: string; override;
|
function GetRunCommandLine: string; override;
|
||||||
|
|
||||||
|
function GetFPCompilerFilename: string; override;
|
||||||
function GetProjectPublishDir: string; override;
|
function GetProjectPublishDir: string; override;
|
||||||
function GetProjectTargetFilename(aProject: TProject): string; override;
|
function GetProjectTargetFilename(aProject: TProject): string; override;
|
||||||
function GetProjectUsesAppBundle: Boolean; override;
|
function GetProjectUsesAppBundle: Boolean; override;
|
||||||
@ -589,6 +590,22 @@ begin
|
|||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TBuildManager.GetFPCompilerFilename: string;
|
||||||
|
begin
|
||||||
|
Result:='';
|
||||||
|
if (Project1<>nil)
|
||||||
|
and ([crCompile,crBuild]*Project1.CompilerOptions.CompileReasons<>[])
|
||||||
|
and (Project1.CompilerOptions.CompilerPath<>'')
|
||||||
|
then begin
|
||||||
|
Result:=Project1.GetCompilerFilename;
|
||||||
|
//debugln(['TBuildManager.GetFPCompilerFilename project compiler="',Result,'"']);
|
||||||
|
end;
|
||||||
|
if not IsFPCompiler(Result) then begin
|
||||||
|
//if Result<>'' then debugln(['TBuildManager.GetFPCompilerFilename project compiler NOT fpc: "',Result,'"']);
|
||||||
|
Result:=EnvironmentOptions.GetParsedCompilerFilename;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
function TBuildManager.GetProjectPublishDir: string;
|
function TBuildManager.GetProjectPublishDir: string;
|
||||||
begin
|
begin
|
||||||
Result:='';
|
Result:='';
|
||||||
@ -786,8 +803,8 @@ begin
|
|||||||
// use current TargetOS, TargetCPU, compilerfilename and FPC source dir
|
// use current TargetOS, TargetCPU, compilerfilename and FPC source dir
|
||||||
TargetOS:=GetTargetOS;
|
TargetOS:=GetTargetOS;
|
||||||
TargetCPU:=GetTargetCPU;
|
TargetCPU:=GetTargetCPU;
|
||||||
CompilerFilename:=EnvironmentOptions.GetParsedCompilerFilename;
|
|
||||||
FPCSrcDir:=EnvironmentOptions.GetParsedFPCSourceDirectory; // needs FPCVer macro
|
FPCSrcDir:=EnvironmentOptions.GetParsedFPCSourceDirectory; // needs FPCVer macro
|
||||||
|
CompilerFilename:=GetFPCompilerFilename;
|
||||||
|
|
||||||
{ $IFDEF VerboseFPCSrcScan}
|
{ $IFDEF VerboseFPCSrcScan}
|
||||||
debugln(['TMainIDE.RescanCompilerDefines A ',
|
debugln(['TMainIDE.RescanCompilerDefines A ',
|
||||||
@ -798,22 +815,24 @@ begin
|
|||||||
' FPCSrcDir=',FPCSrcDir,
|
' FPCSrcDir=',FPCSrcDir,
|
||||||
' WaitTillDone=',WaitTillDone,
|
' WaitTillDone=',WaitTillDone,
|
||||||
' Quiet=',Quiet,
|
' Quiet=',Quiet,
|
||||||
|
' ClearCaches=',ClearCaches,
|
||||||
'']);
|
'']);
|
||||||
{ $ENDIF}
|
{ $ENDIF}
|
||||||
|
|
||||||
if CompilerFilename='' then begin
|
// first check the default targetos, targetcpu of the default compiler
|
||||||
UnitSetCache:=nil;
|
|
||||||
exit;
|
|
||||||
end;
|
|
||||||
|
|
||||||
if FileExistsCached(EnvironmentOptions.GetParsedCompilerFilename) then
|
if FileExistsCached(EnvironmentOptions.GetParsedCompilerFilename) then
|
||||||
begin
|
begin
|
||||||
// first check the default targetos, targetcpu of the default compiler
|
|
||||||
UnitSetCache:=CodeToolBoss.FPCDefinesCache.FindUnitSet(
|
UnitSetCache:=CodeToolBoss.FPCDefinesCache.FindUnitSet(
|
||||||
EnvironmentOptions.GetParsedCompilerFilename,'','','',FPCSrcDir,true);
|
EnvironmentOptions.GetParsedCompilerFilename,'','','',FPCSrcDir,true);
|
||||||
UnitSetCache.GetConfigCache(true);
|
UnitSetCache.GetConfigCache(true);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
// then check the project's compiler
|
||||||
|
if not IsFPCompiler(CompilerFilename) then begin
|
||||||
|
UnitSetCache:=nil;
|
||||||
|
exit;
|
||||||
|
end;
|
||||||
|
|
||||||
// create a cache for the current project settings
|
// create a cache for the current project settings
|
||||||
UnitSetCache:=CodeToolBoss.FPCDefinesCache.FindUnitSet(
|
UnitSetCache:=CodeToolBoss.FPCDefinesCache.FindUnitSet(
|
||||||
CompilerFilename,TargetOS,TargetCPU,'',FPCSrcDir,true);
|
CompilerFilename,TargetOS,TargetCPU,'',FPCSrcDir,true);
|
||||||
@ -1951,8 +1970,8 @@ function TBuildManager.MacroFuncFPCVer(const Param: string; const Data: PtrInt;
|
|||||||
if CodeToolBoss<>nil then begin
|
if CodeToolBoss<>nil then begin
|
||||||
// fetch the FPC version from the current compiler
|
// fetch the FPC version from the current compiler
|
||||||
// Not from the fpc.exe, but from the real compiler
|
// Not from the fpc.exe, but from the real compiler
|
||||||
CompilerFilename:=EnvironmentOptions.GetParsedCompilerFilename;
|
CompilerFilename:=GetFPCompilerFilename;
|
||||||
if CompilerFilename='' then exit;
|
if not IsFPCompiler(CompilerFilename) then exit;
|
||||||
TargetOS:=GetTargetOS;
|
TargetOS:=GetTargetOS;
|
||||||
TargetCPU:=GetTargetCPU;
|
TargetCPU:=GetTargetCPU;
|
||||||
ConfigCache:=CodeToolBoss.FPCDefinesCache.ConfigCaches.Find(
|
ConfigCache:=CodeToolBoss.FPCDefinesCache.ConfigCaches.Find(
|
||||||
|
@ -45,7 +45,7 @@ uses
|
|||||||
{$ELSE}
|
{$ELSE}
|
||||||
OutputFilter,
|
OutputFilter,
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
UTF8Process, InfoBuild, IDEMsgIntf, CompOptsIntf,
|
UTF8Process, InfoBuild, IDEMsgIntf, CompOptsIntf, LazIDEIntf,
|
||||||
DefineTemplates, TransferMacros, EnvironmentOpts, LazFileUtils;
|
DefineTemplates, TransferMacros, EnvironmentOpts, LazFileUtils;
|
||||||
|
|
||||||
type
|
type
|
||||||
@ -1368,7 +1368,7 @@ var
|
|||||||
begin
|
begin
|
||||||
StartTime := Now;
|
StartTime := Now;
|
||||||
try
|
try
|
||||||
fReader.CompilerExecutable := EnvironmentOptions.GetParsedCompilerFilename;
|
fReader.CompilerExecutable := LazarusIDE.GetFPCompilerFilename;
|
||||||
fReader.ReadAndParseOptions;
|
fReader.ReadAndParseOptions;
|
||||||
except
|
except
|
||||||
on E: Exception do
|
on E: Exception do
|
||||||
|
@ -49,7 +49,8 @@ uses
|
|||||||
ProjectIntf, MacroIntf, IDEExternToolIntf, SrcEditorIntf, CompOptsIntf,
|
ProjectIntf, MacroIntf, IDEExternToolIntf, SrcEditorIntf, CompOptsIntf,
|
||||||
IDEOptionsIntf,
|
IDEOptionsIntf,
|
||||||
// IDE
|
// IDE
|
||||||
LazarusIDEStrConsts, IDEProcs, IDEMsgIntf, LazConf, TransferMacros,
|
LazarusIDEStrConsts, IDEProcs, IDEMsgIntf, LazIDEIntf, LazConf,
|
||||||
|
TransferMacros,
|
||||||
{$IFDEF EnableNewExtTools}
|
{$IFDEF EnableNewExtTools}
|
||||||
etFPCMsgParser,
|
etFPCMsgParser,
|
||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
@ -2830,7 +2831,7 @@ begin
|
|||||||
if (VariablesInRegisters) then
|
if (VariablesInRegisters) then
|
||||||
Switches := Switches + ' -OoREGVAR';
|
Switches := Switches + ' -OoREGVAR';
|
||||||
|
|
||||||
CompilerFilename:=EnvironmentOptions.GetParsedCompilerFilename;
|
CompilerFilename:=LazarusIDE.GetFPCompilerFilename;
|
||||||
CodeToolBoss.FPCDefinesCache.ConfigCaches.GetDefaultCompilerTarget(
|
CodeToolBoss.FPCDefinesCache.ConfigCaches.GetDefaultCompilerTarget(
|
||||||
CompilerFilename,'',DefaultTargetOS,DefaultTargetCPU);
|
CompilerFilename,'',DefaultTargetOS,DefaultTargetCPU);
|
||||||
|
|
||||||
|
@ -2040,6 +2040,7 @@ end;
|
|||||||
|
|
||||||
function TEnvironmentOptions.MacroFuncCompPath(const s: string;
|
function TEnvironmentOptions.MacroFuncCompPath(const s: string;
|
||||||
const Data: PtrInt; var Abort: boolean): string;
|
const Data: PtrInt; var Abort: boolean): string;
|
||||||
|
// CompPath returns the default compiler file name of the environment options
|
||||||
begin
|
begin
|
||||||
Result:=GetParsedCompilerFilename;
|
Result:=GetParsedCompilerFilename;
|
||||||
end;
|
end;
|
||||||
|
@ -33,7 +33,7 @@ uses
|
|||||||
Classes, SysUtils, AVL_Tree, FileUtil, lazutf8classes, Forms, Controls,
|
Classes, SysUtils, AVL_Tree, FileUtil, lazutf8classes, Forms, Controls,
|
||||||
Graphics, Dialogs, StdCtrls, ComCtrls, FileProcs, DefineTemplates,
|
Graphics, Dialogs, StdCtrls, ComCtrls, FileProcs, DefineTemplates,
|
||||||
CodeToolManager, BaseBuildManager, Project, EnvironmentOpts,
|
CodeToolManager, BaseBuildManager, Project, EnvironmentOpts,
|
||||||
LazarusIDEStrConsts, AboutFrm, IDEWindowIntf;
|
LazarusIDEStrConsts, AboutFrm, IDEWindowIntf, LazIDEIntf;
|
||||||
|
|
||||||
type
|
type
|
||||||
|
|
||||||
@ -114,7 +114,7 @@ begin
|
|||||||
|
|
||||||
TargetOS:=BuildBoss.GetTargetOS;
|
TargetOS:=BuildBoss.GetTargetOS;
|
||||||
TargetCPU:=BuildBoss.GetTargetCPU;
|
TargetCPU:=BuildBoss.GetTargetCPU;
|
||||||
CompilerFilename:=EnvironmentOptions.GetParsedCompilerFilename;
|
CompilerFilename:=LazarusIDE.GetFPCompilerFilename;
|
||||||
FPCSrcDir:=EnvironmentOptions.GetParsedFPCSourceDirectory; // needs FPCVer macro
|
FPCSrcDir:=EnvironmentOptions.GetParsedFPCSourceDirectory; // needs FPCVer macro
|
||||||
UnitSetCache:=CodeToolBoss.FPCDefinesCache.FindUnitSet(
|
UnitSetCache:=CodeToolBoss.FPCDefinesCache.FindUnitSet(
|
||||||
CompilerFilename,TargetOS,TargetCPU,'',FPCSrcDir,true);
|
CompilerFilename,TargetOS,TargetCPU,'',FPCSrcDir,true);
|
||||||
@ -145,7 +145,7 @@ begin
|
|||||||
List:=nil;
|
List:=nil;
|
||||||
try
|
try
|
||||||
sl.Add('The IDE asks the compiler with the following command for the real OS/CPU:');
|
sl.Add('The IDE asks the compiler with the following command for the real OS/CPU:');
|
||||||
CompilerFilename:=EnvironmentOptions.GetParsedCompilerFilename;
|
CompilerFilename:=LazarusIDE.GetFPCompilerFilename;
|
||||||
CompilerOptions:='';
|
CompilerOptions:='';
|
||||||
Cfg:=CodeToolBoss.FPCDefinesCache.ConfigCaches.Find(
|
Cfg:=CodeToolBoss.FPCDefinesCache.ConfigCaches.Find(
|
||||||
CompilerFilename,CompilerOptions,'','',true);
|
CompilerFilename,CompilerOptions,'','',true);
|
||||||
@ -241,8 +241,11 @@ begin
|
|||||||
sl.add('Global IDE options:');
|
sl.add('Global IDE options:');
|
||||||
sl.Add('LazarusDirectory='+EnvironmentOptions.LazarusDirectory);
|
sl.Add('LazarusDirectory='+EnvironmentOptions.LazarusDirectory);
|
||||||
sl.Add('Resolved LazarusDirectory='+EnvironmentOptions.GetParsedLazarusDirectory);
|
sl.Add('Resolved LazarusDirectory='+EnvironmentOptions.GetParsedLazarusDirectory);
|
||||||
sl.Add('CompilerFilename='+EnvironmentOptions.CompilerFilename);
|
if Project1<>nil then
|
||||||
sl.Add('Resolved CompilerFilename='+EnvironmentOptions.GetParsedCompilerFilename);
|
sl.Add('Project''s CompilerFilename='+Project1.CompilerOptions.CompilerPath);
|
||||||
|
sl.Add('Resolved Project''s CompilerFilename='+Project1.GetCompilerFilename);
|
||||||
|
sl.Add('Default CompilerFilename='+EnvironmentOptions.CompilerFilename);
|
||||||
|
sl.Add('Resolved default compilerFilename='+EnvironmentOptions.GetParsedCompilerFilename);
|
||||||
sl.Add('CompilerMessagesFilename='+EnvironmentOptions.CompilerMessagesFilename);
|
sl.Add('CompilerMessagesFilename='+EnvironmentOptions.CompilerMessagesFilename);
|
||||||
sl.Add('Resolved CompilerMessagesFilename='+EnvironmentOptions.GetParsedCompilerMessagesFilename);
|
sl.Add('Resolved CompilerMessagesFilename='+EnvironmentOptions.GetParsedCompilerMessagesFilename);
|
||||||
sl.Add('');
|
sl.Add('');
|
||||||
|
@ -32,7 +32,7 @@ interface
|
|||||||
uses
|
uses
|
||||||
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
Classes, SysUtils, FileUtil, Forms, Controls, Graphics, Dialogs, StdCtrls,
|
||||||
ComCtrls, LCLProc, LazHelpHTML, LazHelpIntf, DefineTemplates, CodeToolManager,
|
ComCtrls, LCLProc, LazHelpHTML, LazHelpIntf, DefineTemplates, CodeToolManager,
|
||||||
EnvironmentOpts, AboutFrm, LazConf, IDEHelpIntf, IDEWindowIntf,
|
EnvironmentOpts, AboutFrm, LazConf, IDEHelpIntf, IDEWindowIntf, LazIDEIntf,
|
||||||
LazarusIDEStrConsts, Project, SourceEditor, InitialSetupDlgs, PackageSystem,
|
LazarusIDEStrConsts, Project, SourceEditor, InitialSetupDlgs, PackageSystem,
|
||||||
PackageDefs;
|
PackageDefs;
|
||||||
|
|
||||||
@ -241,20 +241,29 @@ begin
|
|||||||
then
|
then
|
||||||
sl.Add('WARNING: '+Note);
|
sl.Add('WARNING: '+Note);
|
||||||
|
|
||||||
sl.Add('CompilerFilename='+EnvironmentOptions.CompilerFilename);
|
sl.Add('Default CompilerFilename='+EnvironmentOptions.CompilerFilename);
|
||||||
sl.Add('Real CompilerFilename='+EnvironmentOptions.GetParsedCompilerFilename);
|
sl.Add('Real Default CompilerFilename='+EnvironmentOptions.GetParsedCompilerFilename);
|
||||||
if CheckCompilerQuality(EnvironmentOptions.GetParsedCompilerFilename,Note,
|
if CheckCompilerQuality(EnvironmentOptions.GetParsedCompilerFilename,Note,
|
||||||
CodeToolBoss.FPCDefinesCache.TestFilename)<>sddqCompatible
|
CodeToolBoss.FPCDefinesCache.TestFilename)<>sddqCompatible
|
||||||
then
|
then
|
||||||
sl.Add('WARNING: '+Note);
|
sl.Add('WARNING: '+Note);
|
||||||
|
|
||||||
|
if Project1<>nil then begin
|
||||||
|
sl.Add('Project CompilerFilename='+Project1.CompilerOptions.CompilerPath);
|
||||||
|
sl.Add('Real Project CompilerFilename='+LazarusIDE.GetFPCompilerFilename);
|
||||||
|
if CheckCompilerQuality(LazarusIDE.GetFPCompilerFilename,Note,
|
||||||
|
CodeToolBoss.FPCDefinesCache.TestFilename)<>sddqCompatible
|
||||||
|
then
|
||||||
|
sl.Add('WARNING: '+Note);
|
||||||
|
end;
|
||||||
|
|
||||||
sl.Add('CompilerMessagesFilename='+EnvironmentOptions.CompilerMessagesFilename);
|
sl.Add('CompilerMessagesFilename='+EnvironmentOptions.CompilerMessagesFilename);
|
||||||
sl.Add('Real CompilerMessagesFilename='+EnvironmentOptions.GetParsedCompilerMessagesFilename);
|
sl.Add('Real CompilerMessagesFilename='+EnvironmentOptions.GetParsedCompilerMessagesFilename);
|
||||||
|
|
||||||
sl.Add('FPC source directory='+EnvironmentOptions.FPCSourceDirectory);
|
sl.Add('FPC source directory='+EnvironmentOptions.FPCSourceDirectory);
|
||||||
sl.Add('Real FPC source directory='+EnvironmentOptions.GetParsedFPCSourceDirectory);
|
sl.Add('Real FPC source directory='+EnvironmentOptions.GetParsedFPCSourceDirectory);
|
||||||
CfgCache:=CodeToolBoss.FPCDefinesCache.ConfigCaches.Find(
|
CfgCache:=CodeToolBoss.FPCDefinesCache.ConfigCaches.Find(
|
||||||
EnvironmentOptions.GetParsedCompilerFilename,'','','',true);
|
LazarusIDE.GetFPCompilerFilename,'','','',true);
|
||||||
if CheckFPCSrcDirQuality(EnvironmentOptions.GetParsedFPCSourceDirectory,Note,
|
if CheckFPCSrcDirQuality(EnvironmentOptions.GetParsedFPCSourceDirectory,Note,
|
||||||
CfgCache.GetFPCVer)<>sddqCompatible
|
CfgCache.GetFPCVer)<>sddqCompatible
|
||||||
then
|
then
|
||||||
|
@ -978,6 +978,7 @@ type
|
|||||||
|
|
||||||
// methods for debugging, compiling and external tools
|
// methods for debugging, compiling and external tools
|
||||||
function GetTestBuildDirectory: string; override;
|
function GetTestBuildDirectory: string; override;
|
||||||
|
function GetFPCompilerFilename: string; override;
|
||||||
procedure GetIDEFileState(Sender: TObject; const AFilename: string;
|
procedure GetIDEFileState(Sender: TObject; const AFilename: string;
|
||||||
NeededFlags: TIDEFileStateFlags; out ResultFlags: TIDEFileStateFlags); override;
|
NeededFlags: TIDEFileStateFlags; out ResultFlags: TIDEFileStateFlags); override;
|
||||||
|
|
||||||
@ -9211,6 +9212,11 @@ begin
|
|||||||
Result:=MainBuildBoss.GetTestBuildDirectory;
|
Result:=MainBuildBoss.GetTestBuildDirectory;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function TMainIDE.GetFPCompilerFilename: string;
|
||||||
|
begin
|
||||||
|
Result:=MainBuildBoss.GetFPCompilerFilename;
|
||||||
|
end;
|
||||||
|
|
||||||
function TMainIDE.FindUnitFile(const AFilename: string; TheOwner: TObject;
|
function TMainIDE.FindUnitFile(const AFilename: string; TheOwner: TObject;
|
||||||
Flags: TFindUnitFileFlags): string;
|
Flags: TFindUnitFileFlags): string;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user