[libc-commits] [libc] eefee38 - [libc] set cmake dependencies for condattr test (#89103)
via libc-commits
libc-commits at lists.llvm.org
Wed Apr 17 10:34:28 PDT 2024
Author: Nick Desaulniers
Date: 2024-04-17T10:34:23-07:00
New Revision: eefee382186005d3662958e076c8e61e286ea1ab
URL: https://github.com/llvm/llvm-project/commit/eefee382186005d3662958e076c8e61e286ea1ab
DIFF: https://github.com/llvm/llvm-project/commit/eefee382186005d3662958e076c8e61e286ea1ab.diff
LOG: [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
Added:
Modified:
libc/src/pthread/pthread_condattr_destroy.cpp
libc/test/src/pthread/CMakeLists.txt
Removed:
################################################################################
diff --git a/libc/src/pthread/pthread_condattr_destroy.cpp b/libc/src/pthread/pthread_condattr_destroy.cpp
index 45cc011a4a92d8..41994c6941ffe3 100644
--- a/libc/src/pthread/pthread_condattr_destroy.cpp
+++ b/libc/src/pthread/pthread_condattr_destroy.cpp
@@ -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;
diff --git a/libc/test/src/pthread/CMakeLists.txt b/libc/test/src/pthread/CMakeLists.txt
index 46f38422a53745..51954a5babd2c5 100644
--- a/libc/test/src/pthread/CMakeLists.txt
+++ b/libc/test/src/pthread/CMakeLists.txt
@@ -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
)
More information about the libc-commits
mailing list