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

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

Issue 1256223003: Revert "Add precompiled headers to GN build for large targets." (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 | « build/config/BUILD.gn ('k') | build/json_schema_api.gni » ('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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 ] 109 ]
110 110
111 # 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 # modes.
114 cflags_c += [ "/TC" ]
115 cflags_cc += [ "/TP" ]
116
117 # Building with Clang on Windows is a work in progress and very 111 # Building with Clang on Windows is a work in progress and very
118 # experimental. See crbug.com/82385. 112 # experimental. See crbug.com/82385.
119 # Keep this in sync with the similar block in build/common.gypi 113 # Keep this in sync with the similar block in build/common.gypi
120 if (is_clang) { 114 if (is_clang) {
121 cflags += [ 115 cflags += [
122 # Many files use intrinsics without including this header. 116 # Many files use intrinsics without including this header.
123 # TODO(hans): Fix those files, or move this to sub-GYPs. 117 # TODO(hans): Fix those files, or move this to sub-GYPs.
124 "/FIIntrin.h", 118 "/FIIntrin.h",
125 ] 119 ]
126 120
(...skipping 1132 matching lines...) Expand 10 before | Expand all | Expand 10 after
1259 cflags += [ "-gsplit-dwarf" ] 1253 cflags += [ "-gsplit-dwarf" ]
1260 } 1254 }
1261 } 1255 }
1262 } 1256 }
1263 1257
1264 config("no_symbols") { 1258 config("no_symbols") {
1265 if (!is_win) { 1259 if (!is_win) {
1266 cflags = [ "-g0" ] 1260 cflags = [ "-g0" ]
1267 } 1261 }
1268 } 1262 }
OLDNEW
« no previous file with comments | « build/config/BUILD.gn ('k') | build/json_schema_api.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698