Fix clang bug again

This commit is contained in:
rexy712 2022-01-16 17:55:20 -08:00
parent 4cdcf6e165
commit ffcd4962fe

View File

@ -54,7 +54,7 @@ namespace rexy{
#if defined(__cpp_lib_hardware_interference_size)
//libc++ bug
// https://bugs.llvm.org/show_bug.cgi?id=41423
#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 11000
#if defined(_LIBCPP_VERSION) && _LIBCPP_VERSION >= 12000
static constexpr size_t cacheline_size = std::hardware_destructive_interference_size;
#else
static constexpr size_t cacheline_size = 64;