[all-commits] [llvm/llvm-project] cb4e75: [reland] [lit] [compiler-rt] Add llvm-lit global c...

Andrew Haberlandt via All-commits all-commits at lists.llvm.org
Wed May 6 14:02:18 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: cb4e752a6dcb9700d86f715d9682dd8a47d61376
      https://github.com/llvm/llvm-project/commit/cb4e752a6dcb9700d86f715d9682dd8a47d61376
  Author: Andrew Haberlandt <ahaberlandt at apple.com>
  Date:   2026-05-06 (Wed, 06 May 2026)

  Changed paths:
    M compiler-rt/test/lit.common.cfg.py
    M llvm/utils/lit/lit/LitConfig.py
    M llvm/utils/lit/lit/TestRunner.py
    M llvm/utils/lit/lit/util.py
    A llvm/utils/lit/tests/unit/Util.py

  Log Message:
  -----------
  [reland] [lit] [compiler-rt] Add llvm-lit global command cache to speed up test config (#196152)

Re-lands #195888

Fixes two issues:
- `date -Ins` is not available on older macOS versions (I think
pre-15.4). This caused the new `test_cache` test to fail. Switched to
just using `date` + a sleep (with a comment explaining why). Even if the
sleep is too long/short, the test should still pass.
- `functools.cache` is not available on Python 3.8. I've moved the
`_memoize` helper out of TestRunner.py into util.py, and switched to it
instead. I had to make a small change to the memoize helper to support
arbitrary args/kwargs.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list