remove ABSL_HAVE_PTHREAD_CPU_NUMBER_NP#2067
Closed
h-vetinari wants to merge 1 commit into
Closed
Conversation
derekmauro
requested changes
Jun 1, 2026
| // Checks whether pthread_cpu_number_np is available. | ||
| #ifdef ABSL_HAVE_PTHREAD_CPU_NUMBER_NP | ||
| #error ABSL_HAVE_PTHREAD_CPU_NUMBER_NP cannot be directly set | ||
| #elif defined(__APPLE__) && defined(__has_include) && \ |
Member
There was a problem hiding this comment.
Don't we still need the __APPLE__ test?
Contributor
Author
There was a problem hiding this comment.
Depends a bit on the pthread setup. I can restore it, but then ABSL_HAVE_PTHREAD_CPU_NUMBER_NP won't be removable
copybara-service Bot
pushed a commit
that referenced
this pull request
Jun 3, 2026
Imported from GitHub PR #2067 The conditions are always satisfied based on the macOS [lower bound](https://github.com/google/oss-policies-info/blob/main/foundational-cxx-support-matrix.md) that has long moved past the versions being considered here. Merge 49ed819 into e3555a1 Merging this change closes #2067 PiperOrigin-RevId: 926238049 Change-Id: Ib90a33dd1d95eb3acea25a5c09bf367f2b64cfaa
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The conditions are always satisfied based on the macOS lower bound that has long moved past the versions being considered here.