mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-22 12:39:29 +02:00
IDE: load default compiler options only if file exists
git-svn-id: trunk@23194 -
This commit is contained in:
parent
cf5309e627
commit
fd5085297e
@ -8902,7 +8902,8 @@ end;
|
||||
|
||||
procedure TMainIDE.DoLoadDefaultCompilerOptions(AProject: TProject);
|
||||
begin
|
||||
// load default compiler options
|
||||
// load default compiler options if exists
|
||||
if not FileExistsUTF8(AProject.CompilerOptions.GetXMLConfigPath) then exit;
|
||||
if AProject.CompilerOptions.LoadCompilerOptions(false)<>mrOk then
|
||||
DebugLn(['TMainIDE.DoLoadDefaultCompilerOptions failed']);
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user