Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index e3cd91d0a23a490f4994b7221053b2859533b95e..d1703e23125ac9c2d6d6622e42e13b2f8d697ef3 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -119,6 +119,11 @@ config("compiler") { |
"/bigobj", # Some of our files are bigger than the regular limits. |
] |
+ if (visual_studio_version == "2015") { |
+ # Work around crbug.com/526851, bug in VS 2015 RTM compiler. |
+ cflags += [ "/Zc:sizedDealloc-" ] |
+ } |
+ |
# Force C/C++ mode for the given GN detected file type. This is necessary |
# for precompiled headers where the same source file is compiled in both |
# modes. |