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

Error with __cpp_lib_hardware_interference_size on MacOS llvm-g++ 12.x #22

Closed
hile opened this issue Nov 10, 2020 · 3 comments
Closed

Comments

@hile
Copy link

hile commented Nov 10, 2020

The check for __cpp_lib_hardware_interference_size in include/rigtorp/SPSCQueue.h seems to incorrectly indicate this feature is available in MacOS llvm-g++ but it's not really implemented.

Not sure how this should be checked correctly, but for example following post suggests instead

#if __cpp_lib_hardware_interference_size >= 201603

This was seen on MacOS 10.15 with xcode CLI tools 12.1 and llvm-g++ version clang-1200.0.32.21

@Be-ing
Copy link

Be-ing commented Nov 13, 2020

Seems like a bug in libc++, not SPSCQueue: https://bugs.llvm.org/show_bug.cgi?id=41423

@rigtorp
Copy link
Owner

rigtorp commented Nov 15, 2020

Closing this since the bug is in LLVM. You can easily remove this code for your local use.

@rigtorp rigtorp closed this as completed Nov 15, 2020
@Be-ing
Copy link

Be-ing commented Nov 16, 2020

We ended up hacking around it by checking whether it's built on macOS: mixxxdj/mixxx#3318

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

No branches or pull requests

3 participants