[all-commits] [llvm/llvm-project] 2b69eb: [clang-tools-extra] Reuse llvm_config.use_clang() ...
Sam McCall via All-commits
all-commits at lists.llvm.org
Tue Mar 15 14:15:51 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 2b69eb4a7d1d1e6829081aa677cd52ad8eef2d5b
https://github.com/llvm/llvm-project/commit/2b69eb4a7d1d1e6829081aa677cd52ad8eef2d5b
Author: Sam McCall <sam.mccall at gmail.com>
Date: 2022-03-15 (Tue, 15 Mar 2022)
Changed paths:
M clang-tools-extra/test/lit.cfg.py
M clang-tools-extra/test/lit.site.cfg.py.in
Log Message:
-----------
[clang-tools-extra] Reuse llvm_config.use_clang() to set up test environment
This replaces a bunch of duplicate logic to set up environment variables
and a few substitutions.
It does a little more than we were doing previously:
- searching for clang and setting up substitutions for it
- setting up some substitutions for target triples, which are
potentially useful but not actually used
clangd has been happily using this for its tests for a while.
Differential Revision: https://reviews.llvm.org/D121422
More information about the All-commits
mailing list