Skip to content

Commit

Permalink
SERVER-44270 Compilation fails with --libc++ and clang 8.0+
Browse files Browse the repository at this point in the history
  • Loading branch information
markbenvenuto authored and evergreen committed Oct 30, 2019
1 parent e9061dd commit aac5968
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/mongo/stdx/new.h
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down

0 comments on commit aac5968

Please sign in to comment.