[libc-commits] [PATCH] D149217: [libc] Enable the GPU build to build the UnitTest library

Joseph Huber via Phabricator via libc-commits libc-commits at lists.llvm.org
Wed Apr 26 14:52:54 PDT 2023


This revision was automatically updated to reflect the committed changes.
Closed by commit rGfab84dcd0a5a: [libc] Enable the GPU build to build the UnitTest library (authored by jhuber6).

Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D149217/new/

https://reviews.llvm.org/D149217

Files:
  libc/config/gpu/entrypoints.txt
  libc/test/CMakeLists.txt


Index: libc/test/CMakeLists.txt
===================================================================
--- libc/test/CMakeLists.txt
+++ libc/test/CMakeLists.txt
@@ -6,9 +6,7 @@
 add_custom_target(exhaustive-check-libc)
 add_custom_target(libc-long-running-tests)
 
-if(NOT LIBC_TARGET_ARCHITECTURE_IS_GPU)
-  add_subdirectory(UnitTest)
-endif()
+add_subdirectory(UnitTest)
 
 add_header_library(
   errno_setter_matcher
Index: libc/config/gpu/entrypoints.txt
===================================================================
--- libc/config/gpu/entrypoints.txt
+++ libc/config/gpu/entrypoints.txt
@@ -57,6 +57,11 @@
     # 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
 )


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D149217.517337.patch
Type: text/x-patch
Size: 854 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/libc-commits/attachments/20230426/43fa8d87/attachment.bin>


More information about the libc-commits mailing list