Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index e3cd91d0a23a490f4994b7221053b2859533b95e..0e2bd07d65ecff985d45c91cb8b067287660d472 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. |