[libc-commits] [libc] 6b3e765 - [libc] Enable 'strftime' for the GPU targets (#128220)

via libc-commits libc-commits at lists.llvm.org
Fri Feb 21 14:29:18 PST 2025


Author: Joseph Huber
Date: 2025-02-21T16:29:15-06:00
New Revision: 6b3e7657cfede8c47f8c703881fce295ee26f5eb

URL: https://github.com/llvm/llvm-project/commit/6b3e7657cfede8c47f8c703881fce295ee26f5eb
DIFF: https://github.com/llvm/llvm-project/commit/6b3e7657cfede8c47f8c703881fce295ee26f5eb.diff

LOG: [libc] Enable 'strftime' for the GPU targets (#128220)

Summary:
These should allow us to build with locale support for libcxx.

Added: 
    

Modified: 
    libc/config/gpu/amdgpu/entrypoints.txt
    libc/config/gpu/nvptx/entrypoints.txt
    libc/docs/gpu/support.rst

Removed: 
    


################################################################################
diff  --git a/libc/config/gpu/amdgpu/entrypoints.txt b/libc/config/gpu/amdgpu/entrypoints.txt
index 756b2cdc7496e..291d86b4dd587 100644
--- a/libc/config/gpu/amdgpu/entrypoints.txt
+++ b/libc/config/gpu/amdgpu/entrypoints.txt
@@ -259,6 +259,8 @@ set(TARGET_LIBC_ENTRYPOINTS
     libc.src.time.clock_gettime
     libc.src.time.timespec_get
     libc.src.time.nanosleep
+    libc.src.time.strftime
+    libc.src.time.strftime_l
 
     # wchar.h entrypoints
     libc.src.wchar.wcslen

diff  --git a/libc/config/gpu/nvptx/entrypoints.txt b/libc/config/gpu/nvptx/entrypoints.txt
index 6b25dae158cc9..1ea0d9b03b37e 100644
--- a/libc/config/gpu/nvptx/entrypoints.txt
+++ b/libc/config/gpu/nvptx/entrypoints.txt
@@ -259,6 +259,8 @@ set(TARGET_LIBC_ENTRYPOINTS
     libc.src.time.clock_gettime
     libc.src.time.timespec_get
     libc.src.time.nanosleep
+    libc.src.time.strftime
+    libc.src.time.strftime_l
 
     # wchar.h entrypoints
     libc.src.wchar.wcslen

diff  --git a/libc/docs/gpu/support.rst b/libc/docs/gpu/support.rst
index 9c151a5fbac1f..3fb2df8e6f2ca 100644
--- a/libc/docs/gpu/support.rst
+++ b/libc/docs/gpu/support.rst
@@ -268,6 +268,8 @@ Function Name  Available  RPC Required
 clock          |check|
 clock_gettime  |check|
 nanosleep      |check|
+strftime       |check|
+strftime_l     |check|
 =============  =========  ============
 
 assert.h


        


More information about the libc-commits mailing list