Skip to content

Commit eefee38

Browse files
[libc] set cmake dependencies for condattr test (#89103)
The entrypoints are not yet exposed on non-x86. Express this dependency to unbreak post submit. Fixes #88987
1 parent 6f7160e commit eefee38

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

libc/src/pthread/pthread_condattr_destroy.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,8 @@
1414

1515
namespace LIBC_NAMESPACE {
1616

17-
LLVM_LIBC_FUNCTION(int, pthread_condattr_destroy, (pthread_condattr_t * attr)) {
17+
LLVM_LIBC_FUNCTION(int, pthread_condattr_destroy,
18+
(pthread_condattr_t * attr [[gnu::unused]])) {
1819
// Initializing a pthread_condattr_t acquires no resources, so this is a
1920
// no-op.
2021
return 0;

libc/test/src/pthread/CMakeLists.txt

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,10 @@ add_libc_unittest(
5050
libc.include.errno
5151
libc.include.pthread
5252
libc.include.time
53+
libc.src.pthread.pthread_condattr_destroy
54+
libc.src.pthread.pthread_condattr_getclock
55+
libc.src.pthread.pthread_condattr_getpshared
56+
libc.src.pthread.pthread_condattr_init
57+
libc.src.pthread.pthread_condattr_setclock
58+
libc.src.pthread.pthread_condattr_setpshared
5359
)

0 commit comments

Comments
 (0)