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

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

Issue 2035313007: Revert of Use /LTCG:Incremental to speed up the non-clobber official builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « build/common.gypi ('k') | no next file » | 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 import("//build/config/compiler/compiler.gni") 7 import("//build/config/compiler/compiler.gni")
8 import("//build/config/nacl/config.gni") 8 import("//build/config/nacl/config.gni")
9 import("//build/toolchain/cc_wrapper.gni") 9 import("//build/toolchain/cc_wrapper.gni")
10 import("//build/toolchain/toolchain.gni") 10 import("//build/toolchain/toolchain.gni")
(...skipping 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after
1200 # they're unrelated constants, which saves binary size. 1200 # they're unrelated constants, which saves binary size.
1201 # This optimization can't be used when ASan is enabled because 1201 # This optimization can't be used when ASan is enabled because
1202 # it is not compatible with the ASan ODR checker. 1202 # it is not compatible with the ASan ODR checker.
1203 "/Gw", 1203 "/Gw",
1204 ] 1204 ]
1205 } 1205 }
1206 common_optimize_on_ldflags = [ "/OPT:ICF" ] # Redundant COMDAT folding. 1206 common_optimize_on_ldflags = [ "/OPT:ICF" ] # Redundant COMDAT folding.
1207 if (is_official_build) { 1207 if (is_official_build) {
1208 common_optimize_on_ldflags += [ 1208 common_optimize_on_ldflags += [
1209 "/OPT:REF", # Remove unreferenced data. 1209 "/OPT:REF", # Remove unreferenced data.
1210 1210 "/LTCG", # Link-time code generation.
1211 # Enable /LTCG for the official builds. Use the incremental mode to
1212 # speed-up the non-clobber builds. This is not the same as incremental
1213 # linking (/INCREMENTAL) and doesn't have any impact on code size or on
1214 # performance.
1215 "/LTCG:INCREMENTAL",
1216 1211
1217 # Set the number of LTCG code-gen threads to eight. The default is four. 1212 # Set the number of LTCG code-gen threads to eight. The default is four.
1218 # This gives a 5-10% link speedup. 1213 # This gives a 5-10% link speedup.
1219 "/cgthreads:8", 1214 "/cgthreads:8",
1220 ] 1215 ]
1221 if (full_wpo_on_official) { 1216 if (full_wpo_on_official) {
1222 arflags = [ "/LTCG" ] 1217 arflags = [ "/LTCG" ]
1223 } 1218 }
1224 } 1219 }
1225 } else { 1220 } else {
(...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after
1492 1487
1493 if (is_ios || is_mac) { 1488 if (is_ios || is_mac) {
1494 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1489 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1495 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1490 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1496 config("enable_arc") { 1491 config("enable_arc") {
1497 common_flags = [ "-fobjc-arc" ] 1492 common_flags = [ "-fobjc-arc" ]
1498 cflags_objc = common_flags 1493 cflags_objc = common_flags
1499 cflags_objcc = common_flags 1494 cflags_objcc = common_flags
1500 } 1495 }
1501 } 1496 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698