diff options
-rw-r--r-- | build/common.gypi | 2 | ||||
-rw-r--r-- | build/config/compiler/BUILD.gn | 13 |
2 files changed, 15 insertions, 0 deletions
diff --git a/build/common.gypi b/build/common.gypi index 94b3b3a..aea53b9 100644 --- a/build/common.gypi +++ b/build/common.gypi @@ -3275,6 +3275,8 @@ # 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', ], }, }, diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index b71d146..a096d56 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) { |