[all-commits] [llvm/llvm-project] 50d7e5: [llvm-objcopy] Improve tool selection logic to rec...

Fangrui Song via All-commits all-commits at lists.llvm.org
Sat Apr 11 22:21:45 PDT 2020


  Branch: refs/heads/release/10.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 50d7e5d5e7db05b53d8832b49761eb627fd2eb63
      https://github.com/llvm/llvm-project/commit/50d7e5d5e7db05b53d8832b49761eb627fd2eb63
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-04-11 (Sat, 11 Apr 2020)

  Changed paths:
    A llvm/test/tools/llvm-objcopy/tool-name.test
    M llvm/tools/llvm-objcopy/llvm-objcopy.cpp

  Log Message:
  -----------
  [llvm-objcopy] Improve tool selection logic to recognize llvm-strip-$major as strip

Debian and some other distributions install llvm-strip as llvm-strip-$major (e.g. `/usr/bin/llvm-strip-9`)

D54193 made it work with llvm-strip-$major but did not add a test.
The behavior was regressed by D69146.

Fixes https://github.com/ClangBuiltLinux/linux/issues/940

Reviewed By: alexshap

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

(cherry picked from commit f2f96eb605bc770e4da400dbcc7a6d2526ec1fd4)




More information about the All-commits mailing list