| 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 import("//build/toolchain/toolchain.gni") | 8 import("//build/toolchain/toolchain.gni") |
| 9 | 9 |
| 10 assert(is_win) | 10 assert(is_win) |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 "/FIXED:NO", | 256 "/FIXED:NO", |
| 257 "/ignore:4199", | 257 "/ignore:4199", |
| 258 "/ignore:4221", | 258 "/ignore:4221", |
| 259 "/NXCOMPAT", | 259 "/NXCOMPAT", |
| 260 | 260 |
| 261 # Suggested by Microsoft Devrel to avoid | 261 # Suggested by Microsoft Devrel to avoid |
| 262 # LINK : fatal error LNK1248: image size (80000000) | 262 # LINK : fatal error LNK1248: image size (80000000) |
| 263 # exceeds maximum allowable size (80000000) | 263 # exceeds maximum allowable size (80000000) |
| 264 # which started happening more regularly after VS2013 Update 4. | 264 # which started happening more regularly after VS2013 Update 4. |
| 265 # Needs to be a bit lower for VS2015, or else errors out. | 265 # Needs to be a bit lower for VS2015, or else errors out. |
| 266 "/maxilksize:0x7ff00000", | 266 "/maxilksize:0xfff00000", |
| 267 | 267 |
| 268 # Tell the linker to crash on failures. | 268 # Tell the linker to crash on failures. |
| 269 "/fastfail", | 269 "/fastfail", |
| 270 ] | 270 ] |
| 271 | 271 |
| 272 # ASLR makes debugging with windbg difficult because Chrome.exe and | 272 # ASLR makes debugging with windbg difficult because Chrome.exe and |
| 273 # Chrome.dll share the same base name. As result, windbg will name the | 273 # Chrome.dll share the same base name. As result, windbg will name the |
| 274 # Chrome.dll module like chrome_<base address>, where <base address> | 274 # Chrome.dll module like chrome_<base address>, where <base address> |
| 275 # typically changes with each launch. This in turn means that breakpoints in | 275 # typically changes with each launch. This in turn means that breakpoints in |
| 276 # Chrome.dll don't stick from one launch to the next. For this reason, we | 276 # Chrome.dll don't stick from one launch to the next. For this reason, we |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 386 | 386 |
| 387 # Internal stuff -------------------------------------------------------------- | 387 # Internal stuff -------------------------------------------------------------- |
| 388 | 388 |
| 389 # Config used by the MIDL template to disable warnings. | 389 # Config used by the MIDL template to disable warnings. |
| 390 config("midl_warnings") { | 390 config("midl_warnings") { |
| 391 if (is_clang) { | 391 if (is_clang) { |
| 392 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". | 392 # MIDL generates code like "#endif !_MIDL_USE_GUIDDEF_". |
| 393 cflags = [ "-Wno-extra-tokens" ] | 393 cflags = [ "-Wno-extra-tokens" ] |
| 394 } | 394 } |
| 395 } | 395 } |
| OLD | NEW |