[PATCH] D72806: [HIP] fix paths for executables not in clang bin directory

Holger Wünsche via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Wed Jan 15 13:29:07 PST 2020


DieGoldeneEnte created this revision.
DieGoldeneEnte added a reviewer: yaxunl.
Herald added subscribers: cfe-commits, mgorny.
Herald added a project: clang.

The previous code constructed the executable paths for llvm-link, opt, lld, llc and clang-offload-bundler for the path to the compiler. This change uses cmake to find the directory containing llvm and lld and searches them using the GetProgramPath method in addition to the compiler directory.

The test completed without error (except one which failed even without my patch) and I was able to confirm successful compilation using the hip toolchain by compiling a simple program with clang, lld, and llvm executables in different directories.


Repository:
  rC Clang

https://reviews.llvm.org/D72806

Files:
  clang/CMakeLists.txt
  clang/lib/Driver/ToolChains/HIP.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72806.238347.patch
Type: text/x-patch
Size: 4226 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20200115/f6ec4ebd/attachment.bin>


More information about the cfe-commits mailing list