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

Detect pthread_setname_np with CMake #1587

Merged
merged 1 commit into from
May 30, 2024
Merged

Conversation

dpogue
Copy link
Member

@dpogue dpogue commented May 30, 2024

In some non-standard setups that slip through our checks, this function doesn't exist and we should guard against calling it. Since it's only used for debugging, let's just use CMake to check if it's defined in the header rather than complicated conditionals in the code for all the different possible versions of this that might exist (or not exist).

In some non-standard setups that slip through our checks, this function
doesn't exist and we should guard against calling it. Since it's only
used for debugging, let's just use CMake to check if it's defined in the
header rather than complicated conditionals in the code for the 4
different possible versions of this that might exist.
@dpogue dpogue merged commit 419bd83 into H-uru:master May 30, 2024
17 checks passed
@dpogue dpogue deleted the pthread_setname branch May 30, 2024 20:35
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.

None yet

3 participants