| 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 1189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 Loading... |
| 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 } |
| OLD | NEW |