[all-commits] [llvm/llvm-project] 8cbd8f: [libc++] Add scripts to build and test libc++ at a...

Louis Dionne via All-commits all-commits at lists.llvm.org
Thu Sep 11 09:15:50 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8cbd8f044b9fea631fa5e793afc5c680f6e018e9
      https://github.com/llvm/llvm-project/commit/8cbd8f044b9fea631fa5e793afc5c680f6e018e9
  Author: Louis Dionne <ldionne.2 at gmail.com>
  Date:   2025-09-11 (Thu, 11 Sep 2025)

  Changed paths:
    A libcxx/utils/build-at-commit
    A libcxx/utils/test-at-commit

  Log Message:
  -----------
  [libc++] Add scripts to build and test libc++ at a specified commit (#158104)

This is useful to perform historical analyses, bisections or establish a
benchmarking baseline after making some changes on a branch. For
example, one can run benchmarks against `main` and easily compare them
to the results on the current feature branch with:

    libcxx/utils/test-at-commit --commit $(git merge-base main HEAD) \
                                -B build/baseline -- <lit args>
    libcxx/utils/libcxx-lit build/candidate <lit args>
    libcxx/utils/compare-benchmarks \
        <(libcxx/utils/consolidate-benchmarks build/baseline) \
        <(libcxx/utils/consolidate-benchmarks build/candidate)

Doing this without these scripts would require checking out the desired
baseline, setting up the build directory and running the tests manually.
With these scripts, this can automatically be automated without dirtying
the current checkout.



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