[Clang] Configure definitions for amdgpu/nvptx arch query tools
authorJoseph Huber <jhuber6@vols.utk.edu>
Tue, 17 Jan 2023 20:25:29 +0000 (14:25 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Tue, 17 Jan 2023 20:27:12 +0000 (14:27 -0600)
commit4ce454c654bd4e027fbdcd7b1dba9d164cd36463
tree1e2e6f1c6f6701aa1ae6d13630f98a51f37930fc
parentc4b39cd09c4eeef2b3e3d32cb674f92c17eeb517
[Clang] Configure definitions for amdgpu/nvptx arch query tools

Summary:
These tools are built unconditionally now. However, there seemed to be
problems where the headers would be found during cross compilation, but
no libraries present. To combat this we should elect to make the CMake
indicate whether or not we should use the dynamic library method or link
it directly rather than using `__has_include`.
clang/tools/amdgpu-arch/AMDGPUArch.cpp
clang/tools/amdgpu-arch/CMakeLists.txt
clang/tools/nvptx-arch/CMakeLists.txt
clang/tools/nvptx-arch/NVPTXArch.cpp