Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(308)

Unified Diff: build/config/compiler/BUILD.gn

Issue 1816333002: Add fastfail to VC++ linker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove compiler switch - just leave linker switch Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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) {
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698