Skip to content

Commit be3fe7e

Browse files
[libc] set cmake dependencies for condattr test
The entrypoints are not yet exposed on non-x86. Express this dependency to unbreak post submit. Fixes llvm#88987
1 parent e59632b commit be3fe7e

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libc/src/pthread/pthread_condattr_destroy.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
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, (pthread_condattr_t * attr [[gnu::unused]])) {
1818
// Initializing a pthread_condattr_t acquires no resources, so this is a
1919
// no-op.
2020
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)