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

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

Issue 2018293002: Enable WPO for the x64 Official builds. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@4702
Patch Set: Rebase. 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') | build/config/compiler/compiler.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 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 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after
1186 common_optimize_on_ldflags = [ "/OPT:ICF" ] # Redundant COMDAT folding. 1186 common_optimize_on_ldflags = [ "/OPT:ICF" ] # Redundant COMDAT folding.
1187 if (is_official_build) { 1187 if (is_official_build) {
1188 common_optimize_on_ldflags += [ 1188 common_optimize_on_ldflags += [
1189 "/OPT:REF", # Remove unreferenced data. 1189 "/OPT:REF", # Remove unreferenced data.
1190 "/LTCG", # Link-time code generation. 1190 "/LTCG", # Link-time code generation.
1191 1191
1192 # Set the number of LTCG code-gen threads to eight. The default is four. 1192 # Set the number of LTCG code-gen threads to eight. The default is four.
1193 # This gives a 5-10% link speedup. 1193 # This gives a 5-10% link speedup.
1194 "/cgthreads:8", 1194 "/cgthreads:8",
1195 ] 1195 ]
1196 if (full_wpo_on_official) {
1197 arflags = [ "/LTCG" ]
1198 }
1196 } 1199 }
1197 } else { 1200 } else {
1198 common_optimize_on_cflags = [ 1201 common_optimize_on_cflags = [
1199 # Don't emit the GCC version ident directives, they just end up in the 1202 # Don't emit the GCC version ident directives, they just end up in the
1200 # .comment section taking up binary size. 1203 # .comment section taking up binary size.
1201 "-fno-ident", 1204 "-fno-ident",
1202 1205
1203 # Put data and code in their own sections, so that unused symbols 1206 # Put data and code in their own sections, so that unused symbols
1204 # can be removed at link time with --gc-sections. 1207 # can be removed at link time with --gc-sections.
1205 "-fdata-sections", 1208 "-fdata-sections",
(...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after
1463 1466
1464 if (is_ios || is_mac) { 1467 if (is_ios || is_mac) {
1465 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1468 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1466 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1469 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1467 config("enable_arc") { 1470 config("enable_arc") {
1468 common_flags = [ "-fobjc-arc" ] 1471 common_flags = [ "-fobjc-arc" ]
1469 cflags_objc = common_flags 1472 cflags_objc = common_flags
1470 cflags_objcc = common_flags 1473 cflags_objcc = common_flags
1471 } 1474 }
1472 } 1475 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | build/config/compiler/compiler.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698