STEP export: ensure messages are immediately printed, and not stored in buffer.

The issue was mainly seen on Windows, in STEP export with msys2 build but also
with other builds when exported from Pcbnew dialog

(cherry picked from commit 0d013498ef)
This commit is contained in:
jean-pierre charras
2025-06-24 19:04:28 +02:00
parent 2ea89e967e
commit 386ef962e4
+4
View File
@@ -130,6 +130,10 @@ REPORTER& CLI_REPORTER::Report( const wxString& aMsg, SEVERITY aSeverity )
else
wxFprintf( target, aMsg + wxS( "\n" ) );
// Needed after wxPrintf (or printf) to be sure the message is immediately printed
// (i.e. not stored in some i/o buffer)
fflush( target );
return *this;
}