[all-commits] [llvm/llvm-project] 2718ae: [clang][deps] Substitute clang-scan-deps executabl...

Jan Svoboda via All-commits all-commits at lists.llvm.org
Wed Aug 4 04:55:28 PDT 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2718ae397b29f339e65c1e3ca5e834b648732d20
      https://github.com/llvm/llvm-project/commit/2718ae397b29f339e65c1e3ca5e834b648732d20
  Author: Jan Svoboda <jan_svoboda at apple.com>
  Date:   2021-08-04 (Wed, 04 Aug 2021)

  Changed paths:
    M clang/test/lit.cfg.py

  Log Message:
  -----------
  [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




More information about the All-commits mailing list