| OLD | NEW |
| 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 1182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1193 # they're unrelated constants, which saves binary size. | 1193 # they're unrelated constants, which saves binary size. |
| 1194 # This optimization can't be used when ASan is enabled because | 1194 # This optimization can't be used when ASan is enabled because |
| 1195 # it is not compatible with the ASan ODR checker. | 1195 # it is not compatible with the ASan ODR checker. |
| 1196 "/Gw", | 1196 "/Gw", |
| 1197 ] | 1197 ] |
| 1198 } | 1198 } |
| 1199 common_optimize_on_ldflags = [ "/OPT:ICF" ] # Redundant COMDAT folding. | 1199 common_optimize_on_ldflags = [ "/OPT:ICF" ] # Redundant COMDAT folding. |
| 1200 if (is_official_build) { | 1200 if (is_official_build) { |
| 1201 common_optimize_on_ldflags += [ | 1201 common_optimize_on_ldflags += [ |
| 1202 "/OPT:REF", # Remove unreferenced data. | 1202 "/OPT:REF", # Remove unreferenced data. |
| 1203 | 1203 "/LTCG", # Link-time code generation. |
| 1204 # Enable /LTCG for the official builds. Use the incremental mode to | |
| 1205 # speed-up the non-clobber builds. This is not the same as incremental | |
| 1206 # linking (/INCREMENTAL) and doesn't have any impact on code size or on | |
| 1207 # performance. | |
| 1208 "/LTCG:INCREMENTAL", | |
| 1209 | 1204 |
| 1210 # Set the number of LTCG code-gen threads to eight. The default is four. | 1205 # Set the number of LTCG code-gen threads to eight. The default is four. |
| 1211 # This gives a 5-10% link speedup. | 1206 # This gives a 5-10% link speedup. |
| 1212 "/cgthreads:8", | 1207 "/cgthreads:8", |
| 1213 ] | 1208 ] |
| 1214 if (full_wpo_on_official) { | 1209 if (full_wpo_on_official) { |
| 1215 arflags = [ "/LTCG" ] | 1210 arflags = [ "/LTCG" ] |
| 1216 } | 1211 } |
| 1217 } | 1212 } |
| 1218 } else { | 1213 } else { |
| (...skipping 266 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1485 | 1480 |
| 1486 if (is_ios || is_mac) { | 1481 if (is_ios || is_mac) { |
| 1487 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1482 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1488 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1483 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1489 config("enable_arc") { | 1484 config("enable_arc") { |
| 1490 common_flags = [ "-fobjc-arc" ] | 1485 common_flags = [ "-fobjc-arc" ] |
| 1491 cflags_objc = common_flags | 1486 cflags_objc = common_flags |
| 1492 cflags_objcc = common_flags | 1487 cflags_objcc = common_flags |
| 1493 } | 1488 } |
| 1494 } | 1489 } |
| OLD | NEW |