llvm.org GIT mirror llvm / 6173f58
[opt-viewer] Flush stdout after progress update Without this, there was no progress shown during parsing but only during rendering on macOS. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@308000 91177308-0d34-0410-b5e6-96231b3b80d8 Adam Nemet 3 years ago
1 changed file(s) with 1 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
1919 with _current.get_lock():
2020 _current.value += 1
2121 sys.stdout.write('\r\t{} of {}'.format(_current.value, _total.value))
22 sys.stdout.flush()
2223
2324 return func(argument)
2425