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

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

Issue 1190813002: Make GN build match gyp (/bigobj everywhere) and remove now-unnecessary settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 # some common GCC configuration. This section sets up Windows and the common 97 # some common GCC configuration. This section sets up Windows and the common
98 # GCC flags, and then we handle the other non-Windows platforms specifically 98 # GCC flags, and then we handle the other non-Windows platforms specifically
99 # below. 99 # below.
100 if (is_win) { 100 if (is_win) {
101 # Windows compiler flags setup. 101 # Windows compiler flags setup.
102 # ----------------------------- 102 # -----------------------------
103 cflags += [ 103 cflags += [
104 "/Gy", # Enable function-level linking. 104 "/Gy", # Enable function-level linking.
105 "/GS", # Enable buffer security checking. 105 "/GS", # Enable buffer security checking.
106 "/FS", # Preserve previous PDB behavior. 106 "/FS", # Preserve previous PDB behavior.
107 "/bigobj", # Always use big .obj format.
107 ] 108 ]
108 109
109 # Building with Clang on Windows is a work in progress and very 110 # Building with Clang on Windows is a work in progress and very
110 # experimental. See crbug.com/82385. 111 # experimental. See crbug.com/82385.
111 # Keep this in sync with the similar block in build/common.gypi 112 # Keep this in sync with the similar block in build/common.gypi
112 if (is_clang) { 113 if (is_clang) {
113 cflags += [ 114 cflags += [
114 # Many files use intrinsics without including this header. 115 # Many files use intrinsics without including this header.
115 # TODO(hans): Fix those files, or move this to sub-GYPs. 116 # TODO(hans): Fix those files, or move this to sub-GYPs.
116 "/FIIntrin.h", 117 "/FIIntrin.h",
(...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after
1256 cflags += [ "-gsplit-dwarf" ] 1257 cflags += [ "-gsplit-dwarf" ]
1257 } 1258 }
1258 } 1259 }
1259 } 1260 }
1260 1261
1261 config("no_symbols") { 1262 config("no_symbols") {
1262 if (!is_win) { 1263 if (!is_win) {
1263 cflags = [ "-g0" ] 1264 cflags = [ "-g0" ]
1264 } 1265 }
1265 } 1266 }
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