Skip to content

[libc] Enable 'wchar.h' for the GPU #98973

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions libc/config/gpu/entrypoints.txt
Original file line number Diff line number Diff line change
Expand Up @@ -218,6 +218,9 @@ set(TARGET_LIBC_ENTRYPOINTS
libc.src.time.clock
libc.src.time.nanosleep

# wchar.h entrypoints
libc.src.wchar.wctob

# gpu/rpc.h entrypoints
libc.src.gpu.rpc_host_call
libc.src.gpu.rpc_fprintf
Expand Down
2 changes: 2 additions & 0 deletions libc/config/gpu/headers.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@ set(TARGET_PUBLIC_HEADERS
libc.include.errno
libc.include.stdlib
libc.include.stdio
libc.include.wchar
libc.include.uchar

# Header for RPC extensions
libc.include.gpu_rpc
Expand Down
1 change: 1 addition & 0 deletions libc/include/uchar.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
#define LLVM_LIBC_UCHAR_H

#include "__llvm-libc-common.h"
#include "llvm-libc-types/mbstate_t.h"

%%public_api()

Expand Down
2 changes: 2 additions & 0 deletions libc/include/wchar.h.def
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@

#include "__llvm-libc-common.h"
#include "llvm-libc-macros/wchar-macros.h"
#include "llvm-libc-types/wint_t.h"
#include "llvm-libc-types/mbstate_t.h"

%%public_api()

Expand Down
Loading