-
Notifications
You must be signed in to change notification settings - Fork 10.5k
[concurrency] Provide missing header file. #37004
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
cc @DougGregor |
ping. |
ping. It would be nice if we could resolve this, since it is breaking out-of-the-box builds on this platform. |
|
33bc813
to
e8fe456
Compare
As mentioned, the trouble is that |
HAVE_PTHREAD_H is supplied in this config file. The `__has_include` pattern is discouraged, but there is no other way of conditioning on `pthread_np.h`, which is required for `pthread_main_np` on OpenBSD. Therefore, use it, but call it out in a comment.
6401e05
to
b930831
Compare
Thank you for making those changes. |
Sorry for the confusion; thank you for finding the symbol. I agree that just supplying the missing include is the right fix. I've called out the __has_include usage in a comment as you suggest.
Just rerunning the build now, though I don't anticipate breakage. |
Nicely worded comment! Someday, when I have a chance to work on this, I'll be able to search for |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Assuming the tests pass (I'm sure they will), this looks good. Thank you!
FYI: builds clean/this change works on this platform now. |
@swift-ci Please test |
Windows failure appears unrelated. |
Merged. Thank you for patiently working through this! |
HAVE_PTHREAD_H is supplied in this config file. The `__has_include` pattern is discouraged, but there is no other way of conditioning on `pthread_np.h`, which is required for `pthread_main_np` on OpenBSD. Therefore, use it, but call it out in a comment. (cherry picked from commit eb945c8)
HAVE_PTHREAD_H is supplied in this config file.
The
__has_include
pattern is discouraged, but there is no other way ofconditioning on
pthread_np.h
, which is required forpthread_main_np
on OpenBSD. Therefore, use it, but call it out in a comment.
I don't know where HAVE_PTHREAD_H comes from on other platforms, but thisseems like a flaky strategy. While we are here, since we are relying on
pthread_main_np, include
pthread_np.h
if it is present, since it isrequired on some platforms.
(This is a buildfix for OpenBSD.)