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);
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
Result:=TStringList.Create;
Reduced:=CompParams;
@ -479,20 +487,19 @@ begin
'i': AddSearchPath('IncPath');
'o': AddSearchPath('ObjectPath');
'l': AddSearchPath('LibPath');
else continue;
end;
while (EndPos<=length(Reduced)) and (Reduced[EndPos] in [' ',#9]) do
inc(EndPos);
System.Delete(Reduced,StartPos,EndPos-StartPos);
EndPos:=StartPos;
DeleteOption;
end;
'v':
// verbosity
begin
while (EndPos<=length(Reduced)) and (Reduced[EndPos] in [' ',#9]) do
inc(EndPos);
System.Delete(Reduced,StartPos,EndPos-StartPos);
EndPos:=StartPos;
end;
DeleteOption;
'i','l':
// information
DeleteOption;
'B':
// build clean
DeleteOption;
end;
end;
end;