Browse Source

* fix for web bug #633

pierre 26 years ago
parent
commit
e298d7a873
1 changed files with 8 additions and 5 deletions
  1. 8 5
      ide/text/fpcompil.pas

+ 8 - 5
ide/text/fpcompil.pas

@@ -350,7 +350,7 @@ begin
       end;
       end;
     cpLinking   :
     cpLinking   :
       begin
       begin
-        StatusS:='Linking...';
+        StatusS:='Linking '+ExeFile;
         KeyS:=CtrlBS;
         KeyS:=CtrlBS;
       end;
       end;
     cpDone      :
     cpDone      :
@@ -588,7 +588,7 @@ begin
     FileName:='-B '+FileName;
     FileName:='-B '+FileName;
   { tokens are created and distroed by compiler.compile !! PM }
   { tokens are created and distroed by compiler.compile !! PM }
   DoneTokens;
   DoneTokens;
-  Compiler.Compile(FileName);
+  FpIntF.Compile(FileName);
   { tokens are created and distroed by compiler.compile !! PM }
   { tokens are created and distroed by compiler.compile !! PM }
   InitTokens;
   InitTokens;
   if LinkAfter and IsExe and
   if LinkAfter and IsExe and
@@ -604,10 +604,10 @@ begin
        ChangeRedirError(FPErrFileName,false);
        ChangeRedirError(FPErrFileName,false);
 {$endif}
 {$endif}
 {$ifdef linux}
 {$ifdef linux}
-       Shell('./'+PpasFile+source_os.scriptext);
+       Shell(GetExePath+PpasFile+source_os.scriptext);
        Error:=LinuxError;
        Error:=LinuxError;
 {$else}
 {$else}
-       DosExecute(GetEnv('COMSPEC'),'/C '+PpasFile+source_os.scriptext);
+       DosExecute(GetEnv('COMSPEC'),'/C '+GetExePath+PpasFile+source_os.scriptext);
        Error:=DosError;
        Error:=DosError;
 {$endif}
 {$endif}
 {$ifndef redircompiler}
 {$ifndef redircompiler}
@@ -748,7 +748,10 @@ end;
 end.
 end.
 {
 {
   $Log$
   $Log$
-  Revision 1.44  1999-11-21 01:44:34  pierre
+  Revision 1.45  1999-11-22 15:58:40  pierre
+   * fix for web bug 633
+
+  Revision 1.44  1999/11/21 01:44:34  pierre
    + Use def_gdb_stop for easy GDB debugging
    + Use def_gdb_stop for easy GDB debugging
 
 
   Revision 1.43  1999/11/18 13:49:56  pierre
   Revision 1.43  1999/11/18 13:49:56  pierre