[all-commits] [llvm/llvm-project] 4d53b9: [llvm-ar] Improve tool selection heuristic

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Dec 10 17:34:24 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 4d53b99c5df2c83172d23521d1b1ab8361d6de92
      https://github.com/llvm/llvm-project/commit/4d53b99c5df2c83172d23521d1b1ab8361d6de92
  Author: Fangrui Song <maskray at google.com>
  Date:   2019-12-10 (Tue, 10 Dec 2019)

  Changed paths:
    A llvm/test/tools/llvm-ar/tool-name.test
    A llvm/test/tools/llvm-dlltool/tool-name.test
    A llvm/test/tools/llvm-lib/tool-name.test
    A llvm/test/tools/llvm-ranlib/tool-name.test
    M llvm/tools/llvm-ar/llvm-ar.cpp

  Log Message:
  -----------
  [llvm-ar] Improve tool selection heuristic

If llvm-ar is installed at arm-pokymllib32-linux-gnueabi-llvm-ar, it may
think it is llvm-lib due to the "lib" substring.

Improve the heuristic to make all the following work as intended:

llvm-ar-9 (llvm-9 package on Debian)
llvm-ranlib.exe
Lib.exe (reported by D44808)
arm-pokymllib32-linux-gnueabi-llvm-ar (reported by D71030)

Reviewed By: raj.khem, rupprecht

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




More information about the All-commits mailing list