Skip to content
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

Use -pthread flag and simplify pthread build logic #585

Merged
merged 1 commit into from
May 12, 2020
Merged

Use -pthread flag and simplify pthread build logic #585

merged 1 commit into from
May 12, 2020

Conversation

chewi
Copy link

@chewi chewi commented Mar 10, 2020

Sometimes -lpthread is not enough. This has caused build failures on Gentoo Linux in the past.

The logic also seems needlessly complex. We check for HAVE_PTHREAD on UNIX platforms even though CMake errors out if pthreads are not found. Similarly, we have a fallback for HAVE_PTHREAD_SIGNAL being false even though we always set it to true.

Sometimes -lpthread is not enough. This has caused build failures on
Gentoo Linux in the past.

The logic also seems needlessly complex. We check for HAVE_PTHREAD on
UNIX platforms even though CMake errors out if pthreads are not
found. Similarly, we have a fallback for HAVE_PTHREAD_SIGNAL being
false even though we always set it to true.
@chewi
Copy link
Author

chewi commented May 10, 2020

Ping?

@shymega
Copy link

shymega commented May 12, 2020

Apologies for the late reply. I'm just taking a look now, then I'll review and make a decision whenever to merge. Thanks!

@shymega
Copy link

shymega commented May 12, 2020

Looking good. I will merge now.

@shymega shymega merged commit dbd1082 into debauchee:master May 12, 2020
@chewi chewi deleted the pthread branch May 12, 2020 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants