diff options
author | Joseph Huber <jhuber6@vols.utk.edu> | 2023-04-25 19:03:43 -0500 |
---|---|---|
committer | Joseph Huber <jhuber6@vols.utk.edu> | 2023-04-26 16:52:30 -0500 |
commit | fab84dcd0a5a38df8ce5d8996fd2d0c917f39ae3 (patch) | |
tree | 8bb8ed61762e5b241095aef355417900f36dbaaf /libc/config | |
parent | fb5a3bc8f81ddbfbec5118eb1a881de8c7bdf615 (diff) | |
download | llvm-fab84dcd0a5a38df8ce5d8996fd2d0c917f39ae3.tar.gz |
[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
Diffstat (limited to 'libc/config')
-rw-r--r-- | libc/config/gpu/entrypoints.txt | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/libc/config/gpu/entrypoints.txt b/libc/config/gpu/entrypoints.txt index 5750fba31d6b..d42a554577e6 100644 --- a/libc/config/gpu/entrypoints.txt +++ b/libc/config/gpu/entrypoints.txt @@ -57,6 +57,11 @@ set(TARGET_LIBC_ENTRYPOINTS # stdlib.h entrypoints libc.src.stdlib.atoi + # Only implemented in the test suite + libc.src.stdlib.malloc + libc.src.stdlib.realloc + libc.src.stdlib.free + # errno.h entrypoints libc.src.errno.errno ) |