Explorar o código

fix redundant searches in FindObjectFile, if the object was found on the first try

git-svn-id: trunk@24725 -
Károly Balogh %!s(int64=12) %!d(string=hai) anos
pai
achega
e7094cf1d6
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      compiler/link.pas

+ 2 - 2
compiler/link.pas

@@ -210,8 +210,8 @@ Implementation
          begin
            if FileExists(FixFileName(s),false) then
             begin
-              foundfile:=ScriptFixFileName(s);
-              found:=true;
+              findobjectfile:=ScriptFixFileName(s);
+              exit;
             end;
          end;
         if pos('.',s)=0 then