Browse Source

* Flush output in case of redir

Michaël Van Canneyt 2 tháng trước cách đây
mục cha
commit
cd1251bf00
1 tập tin đã thay đổi với 4 bổ sung1 xóa
  1. 4 1
      compiler/comphook.pas

+ 4 - 1
compiler/comphook.pas

@@ -397,7 +397,10 @@ begin
      else
        begin
          if status.use_redir then
-           writeln(status.redirfile,MsgTimeStr+MsgLocStr+MsgTypeStr+s)
+           begin
+           writeln(status.redirfile,MsgTimeStr+MsgLocStr+MsgTypeStr+s);
+           flush(status.redirfile);
+           end
          else
            begin
              write(MsgTimeStr+MsgLocStr);