[libc] Enable the GPU build to build the UnitTest library
authorJoseph Huber <jhuber6@vols.utk.edu>
Wed, 26 Apr 2023 00:03:43 +0000 (19:03 -0500)
committerJoseph Huber <jhuber6@vols.utk.edu>
Wed, 26 Apr 2023 21:52:30 +0000 (16:52 -0500)
commitfab84dcd0a5a38df8ce5d8996fd2d0c917f39ae3
tree8bb8ed61762e5b241095aef355417900f36dbaaf
parentfb5a3bc8f81ddbfbec5118eb1a881de8c7bdf615
[libc] Enable the GPU build to build the UnitTest library

The previous patch in D149216 allows us to use the internal `<stdlib.h>`
include for the GPU build. However, we currently don't provide the
memory functions so the header wasn't resolving them. This patch adds
these as entrypoints. They don't cause any entrypoints to be emitted
because they are not implemented, but they provide it in the header so
that we can rely on the test's implementation of them.

Depends on D149216

Reviewed By: sivachandra

Differential Revision: https://reviews.llvm.org/D149217
libc/config/gpu/entrypoints.txt
libc/test/CMakeLists.txt