[libc] Do not install to the default triple in GPU mode
authorJoseph Huber <jhuber6@vols.utk.edu>
Fri, 27 Jan 2023 18:08:28 +0000 (12:08 -0600)
committerJoseph Huber <jhuber6@vols.utk.edu>
Fri, 27 Jan 2023 20:06:00 +0000 (14:06 -0600)
commit8583291dfc43f5769291d8e70d84125154e61341
tree9a48a26378f096af023c63d93ff49066b90c8c08
parent057a2c239e801810fc28d3e87fc4e9cf50be0fc5
[libc] Do not install to the default triple in GPU mode

Currently this logic causes the `libcgpu.a` to be installed to the
user's default triple. The GPU target isn't really true to this in a
cross-compiling sense so we should just default to the regular `/lib`
directory

Reviewed By: sivachandra, lntue

Differential Revision: https://reviews.llvm.org/D142774
libc/lib/CMakeLists.txt