SPSCQueue icon indicating copy to clipboard operation
SPSCQueue copied to clipboard

COMPILE ERROR Mac OS - hardware_destructive_interference_size is not found

Open mgood7123 opened this issue 4 years ago • 1 comments

https://jira.mongodb.org/browse/SERVER-44270 only issue i can find that is related to this

__cpp_lib_hardware_interference_size is defined even though std::hardware_destructive_interference_size is not found

when using

set(CMAKE_CXX_STANDARD 17) set(CMAKE_CXX_STANDARD_REQUIRED ON)

this does not occur when using

set(CMAKE_CXX_STANDARD 14) set(CMAKE_CXX_STANDARD_REQUIRED ON)

or

set(CMAKE_CXX_STANDARD 11) set(CMAKE_CXX_STANDARD_REQUIRED ON)

mgood7123 avatar Mar 05 '21 12:03 mgood7123

That's a bug in LLVM. Just comment out that code until your compiler is fixed

rigtorp avatar Mar 15 '21 15:03 rigtorp