-
Notifications
You must be signed in to change notification settings - Fork 13.6k
[libc][test] adds LINK_LIBRARIES pthread to pthreads test cmake #89262
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
@llvm/pr-subscribers-libc Author: Michael Flanders (Flandini) ChangesFixes #89261. cc @nickdesaulniers fixes this for me. seems like others might not have the same issue, so lmk if i'm just building this wrong. Full diff: https://github.com/llvm/llvm-project/pull/89262.diff 1 Files Affected:
diff --git a/libc/test/src/pthread/CMakeLists.txt b/libc/test/src/pthread/CMakeLists.txt
index 51954a5babd2c5..53a7a14f8d558c 100644
--- a/libc/test/src/pthread/CMakeLists.txt
+++ b/libc/test/src/pthread/CMakeLists.txt
@@ -19,6 +19,8 @@ add_libc_unittest(
libc.src.pthread.pthread_attr_setguardsize
libc.src.pthread.pthread_attr_setstacksize
libc.src.pthread.pthread_attr_setstack
+ LINK_LIBRARIES
+ -lpthread
)
add_libc_unittest(
@@ -38,6 +40,8 @@ add_libc_unittest(
libc.src.pthread.pthread_mutexattr_setpshared
libc.src.pthread.pthread_mutexattr_setrobust
libc.src.pthread.pthread_mutexattr_settype
+ LINK_LIBRARIES
+ -pthread
)
add_libc_unittest(
@@ -56,4 +60,6 @@ add_libc_unittest(
libc.src.pthread.pthread_condattr_init
libc.src.pthread.pthread_condattr_setclock
libc.src.pthread.pthread_condattr_setpshared
+ LINK_LIBRARIES
+ -pthread
)
|
This shouldn't be necessary, since |
Do you have eefee38 on your branch? |
- use namespaced identifiers - add corresponding headers for namespaced declarations - replace time.h and errno.h with finer grain includes - update cmake Fixes: llvm#88987 Fixes: llvm#89261 Link: llvm#88997 Link: llvm#89262
Please let us know if #89308 helps resolve this issue for you? Sorry for my mistake creating a problem! |
Yup, that fixed it, thanks! |
- use namespaced identifiers - add corresponding headers for namespaced declarations - replace time.h and errno.h with finer grain includes - update cmake Fixes: llvm#88987 Fixes: llvm#89261 Link: llvm#88997 Link: llvm#89262
Fixes #89261.
cc @nickdesaulniers
fixes this for me. seems like others might not have the same issue, so lmk if i'm just building this wrong.