Skip to content

Commit 96e5257

Browse files
committed
[clang][deps] Substitute clang-scan-deps executable in lit tests
The lit tests for `clang-scan-deps` invoke the tool without going through the substitution system. While the test runner correctly picks up the `clang-scan-deps` binary from the build directory, it doesn't print its absolute path. When copying the invocations when reproducing test failures, this can result in `command not found: clang-scan-deps` errors or worse yet: pick up the system `clang-scan-deps`. This patch adds new local `%clang-scan-deps` substitution. Reviewed By: lxfind, dblaikie Differential Revision: https://reviews.llvm.org/D107155
1 parent 76c42ab commit 96e5257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

clang/test/lit.cfg.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464

6565
tools = [
6666
'apinotes-test', 'c-index-test', 'clang-diff', 'clang-format', 'clang-repl',
67-
'clang-tblgen', 'opt', 'llvm-ifs', 'yaml2obj',
67+
'clang-tblgen', 'clang-scan-deps', 'opt', 'llvm-ifs', 'yaml2obj',
6868
ToolSubst('%clang_extdef_map', command=FindTool(
6969
'clang-extdef-mapping'), unresolved='ignore'),
7070
]

0 commit comments

Comments
 (0)