[llvm] [Offload] Change HSA header search order (PR #95769)
Joseph Huber via llvm-commits
llvm-commits at lists.llvm.org
Mon Jun 17 12:08:54 PDT 2024
jhuber6 wrote:
> I think this sounds very hacky. Does it work if we do `target_include_directories(BEFORE omptarget.rtl.amdgpu PRIVATE dynamic_hsa)`? This will make sure that the `dyanic_hsa` will be the first one to be listed in `-I`.
No, because the logic in the file explicitly includes `hsa/hsa.h` if it exists instead of anything else.
https://github.com/llvm/llvm-project/pull/95769
More information about the llvm-commits
mailing list