summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/mongo/stdx/new.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mongo/stdx/new.h b/src/mongo/stdx/new.h
index 1fd7afbf6dd..1219454df11 100644
--- a/src/mongo/stdx/new.h
+++ b/src/mongo/stdx/new.h
@@ -37,7 +37,9 @@
namespace mongo {
namespace stdx {
-#if __cplusplus < 201703L || !defined(__cpp_lib_hardware_interference_size)
+// libc++ 8.0 and later define __cpp_lib_hardware_interference_size but don't actually implement it
+#if __cplusplus < 201703L || \
+ !(defined(__cpp_lib_hardware_interference_size) && !defined(_LIBCPP_VERSION))
#if defined(MONGO_CONFIG_MAX_EXTENDED_ALIGNMENT)
static_assert(MONGO_CONFIG_MAX_EXTENDED_ALIGNMENT >= sizeof(uint64_t), "Bad extended alignment");