Skip to content

Commit 6b3e765

Browse files
authored
[libc] Enable 'strftime' for the GPU targets (#128220)
Summary: These should allow us to build with locale support for libcxx.
1 parent 7f5a2cb commit 6b3e765

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

libc/config/gpu/amdgpu/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ set(TARGET_LIBC_ENTRYPOINTS
259259
libc.src.time.clock_gettime
260260
libc.src.time.timespec_get
261261
libc.src.time.nanosleep
262+
libc.src.time.strftime
263+
libc.src.time.strftime_l
262264

263265
# wchar.h entrypoints
264266
libc.src.wchar.wcslen

libc/config/gpu/nvptx/entrypoints.txt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,8 @@ set(TARGET_LIBC_ENTRYPOINTS
259259
libc.src.time.clock_gettime
260260
libc.src.time.timespec_get
261261
libc.src.time.nanosleep
262+
libc.src.time.strftime
263+
libc.src.time.strftime_l
262264

263265
# wchar.h entrypoints
264266
libc.src.wchar.wcslen

libc/docs/gpu/support.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ Function Name Available RPC Required
268268
clock |check|
269269
clock_gettime |check|
270270
nanosleep |check|
271+
strftime |check|
272+
strftime_l |check|
271273
============= ========= ============
272274

273275
assert.h

0 commit comments

Comments
 (0)