[libc][fix] Only use the object files when targeting NVPTX
authorJoseph Huber <jhuber6@vols.utk.edu>
Mon, 17 Apr 2023 14:36:13 +0000 (09:36 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Mon, 17 Apr 2023 14:37:08 +0000 (09:37 -0500)
commit2069bce4cfef31468c979e7d157d8fe84bfd2a70
tree35128bbbc5d8981b44e6845868041b1c94f9d251
parent7547d0b602f59cf3fedb17e280014d2708f427da
[libc][fix] Only use the object files when targeting NVPTX

Summary:
The `nvlink` linker doesn't support static libraries, so we just pass in
the object files. The condition was erroneously doing this for every
single GPU architecture and not just NVIDIA. The AMDGPU support handles
static libraries just fine.
libc/cmake/modules/LLVMLibCTestRules.cmake