Skip to content

Commit

Permalink
[libc] set cmake dependencies for condattr test (#89103)
Browse files Browse the repository at this point in the history
The entrypoints are not yet exposed on non-x86. Express this dependency
to
unbreak post submit.

Fixes #88987
  • Loading branch information
nickdesaulniers committed Apr 17, 2024
1 parent 6f7160e commit eefee38
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libc/src/pthread/pthread_condattr_destroy.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@

namespace LIBC_NAMESPACE {

LLVM_LIBC_FUNCTION(int, pthread_condattr_destroy, (pthread_condattr_t * attr)) {
LLVM_LIBC_FUNCTION(int, pthread_condattr_destroy,
(pthread_condattr_t * attr [[gnu::unused]])) {
// Initializing a pthread_condattr_t acquires no resources, so this is a
// no-op.
return 0;
Expand Down
6 changes: 6 additions & 0 deletions libc/test/src/pthread/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -50,4 +50,10 @@ add_libc_unittest(
libc.include.errno
libc.include.pthread
libc.include.time
libc.src.pthread.pthread_condattr_destroy
libc.src.pthread.pthread_condattr_getclock
libc.src.pthread.pthread_condattr_getpshared
libc.src.pthread.pthread_condattr_init
libc.src.pthread.pthread_condattr_setclock
libc.src.pthread.pthread_condattr_setpshared
)

0 comments on commit eefee38

Please sign in to comment.