[all-commits] [llvm/llvm-project] f1da04: [llvm-driver] Check more specific tools first

Alex Brachet via All-commits all-commits at lists.llvm.org
Mon Apr 17 14:39:30 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f1da04b7357bf0efef2ab881f31bdfb30c3e3b10
      https://github.com/llvm/llvm-project/commit/f1da04b7357bf0efef2ab881f31bdfb30c3e3b10
  Author: Alex Brachet <abrachet at google.com>
  Date:   2023-04-17 (Mon, 17 Apr 2023)

  Changed paths:
    M llvm/tools/llvm-driver/CMakeLists.txt

  Log Message:
  -----------
  [llvm-driver] Check more specific tools first

We allow tools to be called {tool}-{suffix} to support tools being
called something like clang-17. Many clang tools follow this pattern
too for example, clang-scan-deps. It is pure luck wether clang or
clang-scan-deps will appear first in the LLVMDriverTools.def file. If
the former appears first, clang-scan-deps will match against clang,
which is not preferable. Instead we can control the order that tools
are checked so that we always look at more specific tool names first.

Differential Revision: https://reviews.llvm.org/D148543




More information about the All-commits mailing list