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.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
So this is part of the runtimes which is a separate cmake job so it doesn't share the targets.
Comment Actions
I'd still hope the runtimes build would use exported targets for these sorts of tools
Comment Actions
I'm not very familiar with that, do we export tools in this way? I thought it was all just binaries in a directory once you leave the main CMake invocation.