* fpc: don't search for compiler binary in current directory when paramstr(0)

does not contain a path (unless the current directory is also in the PATH)

git-svn-id: trunk@44395 -
This commit is contained in:
Jonas Maebe 2020-03-29 14:52:45 +00:00
parent 3b8979210d
commit 429b3744c4

View File

@ -94,7 +94,7 @@ program fpc;
ppcbin:=extrapath+ppcbin;
findexe:=true;
end
else if FileExists(path+ppcbin) then
else if (path<>'') and FileExists(path+ppcbin) then
begin
ppcbin:=path+ppcbin;
findexe:=true;