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/win/visual_studio_version.gni") | 5 import("//build/config/win/visual_studio_version.gni") |
6 | 6 |
7 # Compiler setup for the Windows SDK. Applied to all targets. | 7 # Compiler setup for the Windows SDK. Applied to all targets. |
8 config("sdk") { | 8 config("sdk") { |
9 # The include path is the stuff returned by the script. | 9 # The include path is the stuff returned by the script. |
10 #include_dirs = msvc_config[0] TODO(brettw) make this work. | 10 #include_dirs = msvc_config[0] TODO(brettw) make this work. |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 | 56 |
57 # This default linker setup is provided separately from the SDK setup so | 57 # This default linker setup is provided separately from the SDK setup so |
58 # targets who want different library configurations can remove this and specify | 58 # targets who want different library configurations can remove this and specify |
59 # their own. | 59 # their own. |
60 config("common_linker_setup") { | 60 config("common_linker_setup") { |
61 ldflags = [ | 61 ldflags = [ |
62 "/FIXED:NO", | 62 "/FIXED:NO", |
63 "/ignore:4199", | 63 "/ignore:4199", |
64 "/ignore:4221", | 64 "/ignore:4221", |
65 "/NXCOMPAT", | 65 "/NXCOMPAT", |
| 66 |
| 67 # Suggested by Microsoft Devrel to avoid |
| 68 # LINK : fatal error LNK1248: image size (80000000) |
| 69 # exceeds maximum allowable size (80000000) |
| 70 # which started happening more regularly after VS2013 Update 4. |
| 71 "/maxilksize:2147483647", |
66 ] | 72 ] |
67 | 73 |
68 # ASLR makes debugging with windbg difficult because Chrome.exe and | 74 # ASLR makes debugging with windbg difficult because Chrome.exe and |
69 # Chrome.dll share the same base name. As result, windbg will name the | 75 # Chrome.dll share the same base name. As result, windbg will name the |
70 # Chrome.dll module like chrome_<base address>, where <base address> | 76 # Chrome.dll module like chrome_<base address>, where <base address> |
71 # typically changes with each launch. This in turn means that breakpoints in | 77 # typically changes with each launch. This in turn means that breakpoints in |
72 # Chrome.dll don't stick from one launch to the next. For this reason, we | 78 # Chrome.dll don't stick from one launch to the next. For this reason, we |
73 # turn ASLR off in debug builds. | 79 # turn ASLR off in debug builds. |
74 if (is_debug) { | 80 if (is_debug) { |
75 ldflags += [ "/DYNAMICBASE:NO" ] | 81 ldflags += [ "/DYNAMICBASE:NO" ] |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 | 131 |
126 # Nominmax -------------------------------------------------------------------- | 132 # Nominmax -------------------------------------------------------------------- |
127 | 133 |
128 # Some third party code defines NOMINMAX before including windows.h, which | 134 # Some third party code defines NOMINMAX before including windows.h, which |
129 # then causes warnings when it's been previously defined on the command line. | 135 # then causes warnings when it's been previously defined on the command line. |
130 # For such targets, this config can be removed. | 136 # For such targets, this config can be removed. |
131 | 137 |
132 config("nominmax") { | 138 config("nominmax") { |
133 defines = [ "NOMINMAX" ] | 139 defines = [ "NOMINMAX" ] |
134 } | 140 } |
OLD | NEW |