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

Simplify atomic availability detection. #400

Merged
merged 1 commit into from
Oct 30, 2023
Merged

Simplify atomic availability detection. #400

merged 1 commit into from
Oct 30, 2023

Conversation

Dirbaio
Copy link
Member

@Dirbaio Dirbaio commented Oct 30, 2023

  • cfg(target_has_atomic) is stable now, use that.
  • Hardcode in build.rs the list of targets with load/store but no CAS, since cfg(target_has_atomic_load_store) is not stable yet.
  • Do not try to autodetect whether portable-atomic is needed or not, just let the user control it directly. If the user doesn't explicitly enable portable-atomic and native atomics are unavailable, the features requiring it will be missing.

@Dirbaio Dirbaio force-pushed the simplify-atomics branch 4 times, most recently from d0c8c2f to 189af25 Compare October 30, 2023 22:59
- `cfg(target_has_atomic)` is stable now, use that.
- Hardcode in `build.rs` the list of targets with load/store but no CAS,
  since `cfg(target_has_atomic_load_store)` is not stable yet.
- Do not try to autodetect whether `portable-atomic` is needed or not,
  just let the user control it directly. If the user doesn't explicitly
  enable `portable-atomic` and native atomics are unavailable, the
  features requiring it will be missing.
@newAM newAM added this pull request to the merge queue Oct 30, 2023
Merged via the queue into main with commit 73029ac Oct 30, 2023
25 checks passed
@newAM newAM deleted the simplify-atomics branch October 30, 2023 23:32
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.

2 participants