Skip to content

Commit

Permalink
[libc] Enable 'strftime' for the GPU targets (#128220)
Browse files Browse the repository at this point in the history
Summary:
These should allow us to build with locale support for libcxx.
  • Loading branch information
jhuber6 authored Feb 21, 2025
1 parent 7f5a2cb commit 6b3e765
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions libc/config/gpu/amdgpu/entrypoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions libc/config/gpu/nvptx/entrypoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions libc/docs/gpu/support.rst
Original file line number Diff line number Diff line change
Expand Up @@ -268,6 +268,8 @@ Function Name Available RPC Required
clock |check|
clock_gettime |check|
nanosleep |check|
strftime |check|
strftime_l |check|
============= ========= ============

assert.h
Expand Down

0 comments on commit 6b3e765

Please sign in to comment.