From c45f4491b3a43ab1b5a005d68395fec5c83e683f Mon Sep 17 00:00:00 2001 From: Joseph Huber Date: Fri, 21 Feb 2025 13:37:20 -0600 Subject: [PATCH] [libc] Enable 'strftime' for the GPU targets Summary: These should allow us to build with locale support for libcxx. --- libc/config/gpu/amdgpu/entrypoints.txt | 2 ++ libc/config/gpu/nvptx/entrypoints.txt | 2 ++ libc/docs/gpu/support.rst | 2 ++ 3 files changed, 6 insertions(+) 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