OLD | NEW |
1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 import("//build/config/compiler/compiler.gni") | 5 import("//build/config/compiler/compiler.gni") |
6 import("//build/config/sanitizers/sanitizers.gni") | 6 import("//build/config/sanitizers/sanitizers.gni") |
7 import("//build/config/win/visual_studio_version.gni") | 7 import("//build/config/win/visual_studio_version.gni") |
8 | 8 |
9 assert(is_win) | 9 assert(is_win) |
10 | 10 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
237 ldflags = [ | 237 ldflags = [ |
238 "/FIXED:NO", | 238 "/FIXED:NO", |
239 "/ignore:4199", | 239 "/ignore:4199", |
240 "/ignore:4221", | 240 "/ignore:4221", |
241 "/NXCOMPAT", | 241 "/NXCOMPAT", |
242 | 242 |
243 # Suggested by Microsoft Devrel to avoid | 243 # Suggested by Microsoft Devrel to avoid |
244 # LINK : fatal error LNK1248: image size (80000000) | 244 # LINK : fatal error LNK1248: image size (80000000) |
245 # exceeds maximum allowable size (80000000) | 245 # exceeds maximum allowable size (80000000) |
246 # which started happening more regularly after VS2013 Update 4. | 246 # which started happening more regularly after VS2013 Update 4. |
247 "/maxilksize:2147483647", | 247 # Needs to be a bit lower for VS2015, or else errors out. |
| 248 "/maxilksize:0x7ff00000", |
| 249 |
| 250 # Tell the linker to crash on failures. |
| 251 "/fastfail", |
248 ] | 252 ] |
249 | 253 |
250 # ASLR makes debugging with windbg difficult because Chrome.exe and | 254 # ASLR makes debugging with windbg difficult because Chrome.exe and |
251 # Chrome.dll share the same base name. As result, windbg will name the | 255 # Chrome.dll share the same base name. As result, windbg will name the |
252 # Chrome.dll module like chrome_<base address>, where <base address> | 256 # Chrome.dll module like chrome_<base address>, where <base address> |
253 # typically changes with each launch. This in turn means that breakpoints in | 257 # typically changes with each launch. This in turn means that breakpoints in |
254 # Chrome.dll don't stick from one launch to the next. For this reason, we | 258 # Chrome.dll don't stick from one launch to the next. For this reason, we |
255 # turn ASLR off in debug builds. | 259 # turn ASLR off in debug builds. |
256 if (is_debug) { | 260 if (is_debug) { |
257 ldflags += [ "/DYNAMICBASE:NO" ] | 261 ldflags += [ "/DYNAMICBASE:NO" ] |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
370 | 374 |
371 # Internal stuff -------------------------------------------------------------- | 375 # Internal stuff -------------------------------------------------------------- |
372 | 376 |
373 # Config used by the MIDL template to disable warnings. | 377 # Config used by the MIDL template to disable warnings. |
374 config("midl_warnings") { | 378 config("midl_warnings") { |
375 if (is_clang) { | 379 if (is_clang) { |
376 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 380 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
377 cflags = [ "-Wno-extra-tokens" ] | 381 cflags = [ "-Wno-extra-tokens" ] |
378 } | 382 } |
379 } | 383 } |
OLD | NEW |