Skip to content

Commit

Permalink
[libc] Enable 'wchar.h' for the GPU (#98973)
Browse files Browse the repository at this point in the history
Summary:
This file is not really well populated, but is required for some targets
to configure. Enable it on the GPU for now.
  • Loading branch information
jhuber6 committed Jul 16, 2024
1 parent 27b2f4f commit 94ed08d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 0 deletions.
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

0 comments on commit 94ed08d

Please sign in to comment.