mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-20 12:19:31 +02:00
IDE: about fpc: warn if fpc has no config file
git-svn-id: trunk@28938 -
This commit is contained in:
parent
8cdcd7f1ea
commit
a2157c46f8
@ -264,6 +264,7 @@ var
|
||||
CfgCache: TFPCTargetConfigCache;
|
||||
i: Integer;
|
||||
CfgFileItem: TFPCConfigFileState;
|
||||
HasCfgs: Boolean;
|
||||
begin
|
||||
sl.Add('FPC executable:');
|
||||
if UnitSetCache<>nil then begin
|
||||
@ -277,13 +278,19 @@ begin
|
||||
sl.Add('RealTargetOS='+CfgCache.RealTargetOS);
|
||||
sl.Add('RealTargetCPU='+CfgCache.RealTargetCPU);
|
||||
sl.Add('RealCompilerInPath='+CfgCache.RealCompilerInPath);
|
||||
HasCfgs:=false;
|
||||
if CfgCache.ConfigFiles<>nil then begin
|
||||
for i:=0 to CfgCache.ConfigFiles.Count-1 do begin
|
||||
CfgFileItem:=CfgCache.ConfigFiles[i];
|
||||
if CfgFileItem.FileExists then
|
||||
if CfgFileItem.FileExists then begin
|
||||
sl.Add('CfgFilename='+CfgFileItem.Filename);
|
||||
HasCfgs:=true;
|
||||
end;
|
||||
end;
|
||||
end;
|
||||
if not HasCfgs then
|
||||
sl.Add('WARNING: fpc has no config file');
|
||||
sl.Add('');
|
||||
sl.Add('Defines:');
|
||||
if CfgCache.Defines<>nil then begin
|
||||
sl.Add(CfgCache.Defines.AsText);
|
||||
|
@ -51,8 +51,6 @@ uses
|
||||
type
|
||||
TInspectChksumChgDialog = class;
|
||||
|
||||
{ TQuickFixMissingUnit }
|
||||
|
||||
{ TICCAction }
|
||||
|
||||
TICCAction = class
|
||||
|
Loading…
Reference in New Issue
Block a user