* Also search for ppcXXX if ppcrossXXX is not found for -PB option, show default binary

git-svn-id: trunk@34269 -
This commit is contained in:
pierre 2016-08-11 09:01:58 +00:00
parent 358eb38ef2
commit 0e6b4def67

View File

@ -190,7 +190,16 @@ program fpc;
{ report the full name of the ppcbin }
if versionstr<>'' then
ppcbin:=ppcbin+'-'+versionstr;
findexe(ppcbin);
if not findexe(ppcbin) then
begin
if cpusuffix<>'' Then
begin
ppcbin:='ppc'+cpusuffix;
if versionstr<>'' then
ppcbin:=ppcbin+'-'+versionstr;
findexe(ppcbin);
end;
end;
writeln(ppcbin);
halt(0);
end