Index: build/config/compiler/BUILD.gn |
diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn |
index b71d1464f94dc80f01ea7c74df5fb33cbc9414f8..a096d56da7ce2da88acd3a02d5c625f8d2915c20 100644 |
--- a/build/config/compiler/BUILD.gn |
+++ b/build/config/compiler/BUILD.gn |
@@ -143,6 +143,19 @@ config("compiler") { |
":compiler_codegen", |
] |
+ if (is_win) { |
+ ldflags += [ |
+ # Suggested by Microsoft Devrel to avoid |
+ # LINK : fatal error LNK1248: image size (80000000) exceeds maximum allowable size (80000000) |
+ # which started happening more regularly after VS2013 Update 4. |
+ # Needs to be a bit lower for VS2015, or else errors out. |
+ "/maxilksize:0x7ff00000", |
+ |
+ # Tell the linker to crash on failures. |
+ "/fastfail", |
+ ] |
+ } |
+ |
# In general, Windows is totally different, but all the other builds share |
# some common GCC configuration. |
if (!is_win) { |