From 95be95f1a17117574f563ea2c1802dcd6ff8e154 Mon Sep 17 00:00:00 2001 From: Corentin Le Molgat Date: Wed, 24 Oct 2018 11:35:22 +0200 Subject: [PATCH] Bazel: Fix alignment conformance error on VS 2017 >= 15.8 (Fix #193) --- absl/copts.bzl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/absl/copts.bzl b/absl/copts.bzl index 5c508f17df9..ff93d89b68f 100644 --- a/absl/copts.bzl +++ b/absl/copts.bzl @@ -130,7 +130,9 @@ MSVC_FLAGS = [ "/wd4800", # forcing value to bool 'true' or 'false' (performance warning) "/DNOMINMAX", # Don't define min and max macros (windows.h) "/DWIN32_LEAN_AND_MEAN", # Don't bloat namespace with incompatible winsock versions. - "/D_CRT_SECURE_NO_WARNINGS", # Don't warn about usage of insecure C functions + "/D_CRT_SECURE_NO_WARNINGS", # Don't warn about usage of insecure C functions. + "/D_ENABLE_EXTENDED_ALIGNED_STORAGE", # Introduced in VS 2017 15.8, + # before the member type would non-conformingly have an alignment of only alignof(max_align_t). ] MSVC_TEST_FLAGS = [