IDE: when compiled state: skip fpc options -B -i, do not skip all -F

git-svn-id: trunk@36651 -
This commit is contained in:
mattias 2012-04-07 09:11:01 +00:00
parent 236f6e9b29
commit 1b34f3ddc7

View File

@ -459,6 +459,14 @@ var
AllPaths.Values[Typ]:=MergeSearchPaths(AllPaths.Values[Typ],Path); AllPaths.Values[Typ]:=MergeSearchPaths(AllPaths.Values[Typ],Path);
end; end;
procedure DeleteOption;
begin
while (EndPos<=length(Reduced)) and (Reduced[EndPos] in [' ',#9]) do
inc(EndPos);
System.Delete(Reduced,StartPos,EndPos-StartPos);
EndPos:=StartPos;
end;
begin begin
Result:=TStringList.Create; Result:=TStringList.Create;
Reduced:=CompParams; Reduced:=CompParams;
@ -479,20 +487,19 @@ begin
'i': AddSearchPath('IncPath'); 'i': AddSearchPath('IncPath');
'o': AddSearchPath('ObjectPath'); 'o': AddSearchPath('ObjectPath');
'l': AddSearchPath('LibPath'); 'l': AddSearchPath('LibPath');
else continue;
end; end;
while (EndPos<=length(Reduced)) and (Reduced[EndPos] in [' ',#9]) do DeleteOption;
inc(EndPos);
System.Delete(Reduced,StartPos,EndPos-StartPos);
EndPos:=StartPos;
end; end;
'v': 'v':
// verbosity // verbosity
begin DeleteOption;
while (EndPos<=length(Reduced)) and (Reduced[EndPos] in [' ',#9]) do 'i','l':
inc(EndPos); // information
System.Delete(Reduced,StartPos,EndPos-StartPos); DeleteOption;
EndPos:=StartPos; 'B':
end; // build clean
DeleteOption;
end; end;
end; end;
end; end;