mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 11:10:05 +00:00
Flush stdout before changing mode back to text (#5477)
This commit is contained in:
parent
560eea6d75
commit
fb91e6f0eb
@ -144,6 +144,7 @@ class OutputFile {
|
||||
|
||||
~OutputFile() {
|
||||
if (fp_ == stdout) {
|
||||
fflush(stdout);
|
||||
SET_STDOUT_MODE(old_mode_);
|
||||
} else if (fp_ != nullptr) {
|
||||
fclose(fp_);
|
||||
|
Loading…
Reference in New Issue
Block a user