IDE: unset pfUseDefaultCompilerOptions

git-svn-id: trunk@26995 -
This commit is contained in:
mattias 2010-08-03 12:00:17 +00:00
parent 9990d3eff6
commit 0f73b1c59f
2 changed files with 4 additions and 1 deletions

View File

@ -9604,8 +9604,10 @@ begin
Project1.BeginUpdate(true);
try
Project1.CompilerOptions.CompilerPath:='$(CompPath)';
if pfUseDefaultCompilerOptions in Project1.Flags then
if pfUseDefaultCompilerOptions in Project1.Flags then begin
DoLoadDefaultCompilerOptions(Project1);
Project1.Flags:=Project1.Flags-[pfUseDefaultCompilerOptions];
end;
Project1.AutoAddOutputDirToIncPath;
UpdateCaption;
if ProjInspector<>nil then ProjInspector.LazProject:=Project1;

View File

@ -2923,6 +2923,7 @@ var
SetFlag(pfRunnable,
OldProjectType in [ptProgram,ptApplication,ptCustomProgram]);
end;
FFlags:=FFlags-[pfUseDefaultCompilerOptions];
end;
procedure LoadSessionInfo(XMLConfig: TXMLConfig; const Path: string;