Skip to content

Commit 31442c9

Browse files
committed
[libc] Enable varargs tests for AMDGPU targets
Summary: This reverts commit 574ab7e.
1 parent 170d45c commit 31442c9

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

libc/config/gpu/entrypoints.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,13 @@
1+
if(LIBC_TARGET_ARCHITECTURE_IS_AMDGPU)
2+
set(extra_entrypoints
3+
# stdio.h entrypoints
4+
libc.src.stdio.sprintf
5+
libc.src.stdio.snprintf
6+
libc.src.stdio.vsprintf
7+
libc.src.stdio.vsnprintf
8+
)
9+
endif()
10+
111
set(TARGET_LIBC_ENTRYPOINTS
212
# assert.h entrypoints
313
libc.src.assert.__assert_fail
@@ -175,6 +185,7 @@ set(TARGET_LIBC_ENTRYPOINTS
175185
libc.src.errno.errno
176186

177187
# stdio.h entrypoints
188+
${extra_entrypoints}
178189
libc.src.stdio.feof
179190
libc.src.stdio.ferror
180191
libc.src.stdio.fseek

libc/test/src/__support/CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,8 +86,8 @@ add_libc_test(
8686
libc.src.__support.uint128
8787
)
8888

89-
# The GPU does not support varargs currently.
90-
if(NOT LIBC_TARGET_OS_IS_GPU)
89+
# NVPTX does not support varargs currently.
90+
if(NOT LIBC_TARGET_ARCHITECTURE_IS_NVPTX)
9191
add_libc_test(
9292
arg_list_test
9393
SUITE

0 commit comments

Comments
 (0)