[llvm] [lit] Add an option to lit which ratelimits progressbar output. (PR #186479)

Nick Begg via llvm-commits llvm-commits at lists.llvm.org
Sun Mar 15 04:41:46 PDT 2026


================
@@ -261,7 +261,23 @@ def __init__(self, term, header, useETA=True):
             self.startTime = time.time()
         # self.update(0, '')
 
+        self.lastUpdateTime = 0
+        self.minOutputInterval = minOutputInterval
+        # the checks preceeding us should prevent getting here if output is redirected
+        # - we don't want to rate limit (ie drop) output to a file
+        assert sys.stdout.isatty()
----------------
neek78 wrote:

No, this class is not instantiated at all in non-tty cases. This is just to confirm that, hence - assert (and the comment)

https://github.com/llvm/llvm-project/pull/186479


More information about the llvm-commits mailing list