فهرست منبع

* Use ExeSearch instead of FileSearch to find compiler/command executable

git-svn-id: trunk@12952 -
joost 16 سال پیش
والد
کامیت
ad7f4a1f24
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      packages/fpmkunit/src/fpmkunit.pp

+ 2 - 2
packages/fpmkunit/src/fpmkunit.pp

@@ -3231,7 +3231,7 @@ begin
             O:=Substitute(C.Options,['SOURCE',C.SourceFile,'DEST',C.DestFile]);
             O:=Substitute(C.Options,['SOURCE',C.SourceFile,'DEST',C.DestFile]);
             Cmd:=C.Command;
             Cmd:=C.Command;
             If (ExtractFilePath(Cmd)='') then
             If (ExtractFilePath(Cmd)='') then
-              Cmd:=FileSearch(Cmd,GetEnvironmentvariable('PATH'));
+              Cmd:=ExeSearch(Cmd,GetEnvironmentvariable('PATH'));
             ExecuteCommand(Cmd,O,C.IgnoreResult);
             ExecuteCommand(Cmd,O,C.IgnoreResult);
             If Assigned(C.AfterCommand) then
             If Assigned(C.AfterCommand) then
               C.AfterCommand(C);
               C.AfterCommand(C);
@@ -3583,7 +3583,7 @@ begin
     FCompiler:=Defaults.Compiler;
     FCompiler:=Defaults.Compiler;
     If (ExtractFilePath(FCompiler)='') then
     If (ExtractFilePath(FCompiler)='') then
       begin
       begin
-      S:=FileSearch(FCompiler,GetEnvironmentVariable('PATH'));
+      S:=ExeSearch(FCompiler,GetEnvironmentVariable('PATH'));
       If (S<>'') then
       If (S<>'') then
          FCompiler:=S;
          FCompiler:=S;
       end;
       end;