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

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1269253003: Add /bigobj to all builds on Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 4 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 unified diff | Download patch
« no previous file with comments | « no previous file | content/common/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/android/config.gni") 5 import("//build/config/android/config.gni")
6 import("//build/config/chrome_build.gni") 6 import("//build/config/chrome_build.gni")
7 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 # some common GCC configuration. This section sets up Windows and the common 99 # some common GCC configuration. This section sets up Windows and the common
100 # GCC flags, and then we handle the other non-Windows platforms specifically 100 # GCC flags, and then we handle the other non-Windows platforms specifically
101 # below. 101 # below.
102 if (is_win) { 102 if (is_win) {
103 # Windows compiler flags setup. 103 # Windows compiler flags setup.
104 # ----------------------------- 104 # -----------------------------
105 cflags += [ 105 cflags += [
106 "/Gy", # Enable function-level linking. 106 "/Gy", # Enable function-level linking.
107 "/GS", # Enable buffer security checking. 107 "/GS", # Enable buffer security checking.
108 "/FS", # Preserve previous PDB behavior. 108 "/FS", # Preserve previous PDB behavior.
109 "/bigobj", # Some of our files are bigger than the regular limits.
109 ] 110 ]
110 111
111 # Force C/C++ mode for the given GN detected file type. This is necessary 112 # Force C/C++ mode for the given GN detected file type. This is necessary
112 # for precompiled headers where the same source file is compiled in both 113 # for precompiled headers where the same source file is compiled in both
113 # modes. 114 # modes.
114 cflags_c += [ "/TC" ] 115 cflags_c += [ "/TC" ]
115 cflags_cc += [ "/TP" ] 116 cflags_cc += [ "/TP" ]
116 117
117 # Building with Clang on Windows is a work in progress and very 118 # Building with Clang on Windows is a work in progress and very
118 # experimental. See crbug.com/82385. 119 # experimental. See crbug.com/82385.
(...skipping 1162 matching lines...) Expand 10 before | Expand all | Expand 10 after
1281 cflags += [ "-gsplit-dwarf" ] 1282 cflags += [ "-gsplit-dwarf" ]
1282 } 1283 }
1283 } 1284 }
1284 } 1285 }
1285 1286
1286 config("no_symbols") { 1287 config("no_symbols") {
1287 if (!is_win) { 1288 if (!is_win) {
1288 cflags = [ "-g0" ] 1289 cflags = [ "-g0" ]
1289 } 1290 }
1290 } 1291 }
OLDNEW
« no previous file with comments | « no previous file | content/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698