[libc] Do not find system binaries for offloading tools
We use `find_program` to identify a few programs we use for offloading. Namely, `clang-offload-packger`, `amdgpu-arch`, and `nvptx-arch`. Currently the logic allows these to bind to any tool matching this name, so it will find it on the system. This meant that if the installation was deleted or it found a broken binary the compilation would fail. We should only pull these from the current LLVM binary directory. Reviewed By: arsenm Differential Revision: https://reviews.llvm.org/D158203
Loading
Please sign in to comment