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 1221 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1232 if (!is_asan) { | 1232 if (!is_asan) { |
1233 common_optimize_on_cflags += [ | 1233 common_optimize_on_cflags += [ |
1234 # Put data in separate COMDATs. This allows the linker | 1234 # Put data in separate COMDATs. This allows the linker |
1235 # to put bit-identical constants at the same address even if | 1235 # to put bit-identical constants at the same address even if |
1236 # they're unrelated constants, which saves binary size. | 1236 # they're unrelated constants, which saves binary size. |
1237 # This optimization can't be used when ASan is enabled because | 1237 # This optimization can't be used when ASan is enabled because |
1238 # it is not compatible with the ASan ODR checker. | 1238 # it is not compatible with the ASan ODR checker. |
1239 "/Gw", | 1239 "/Gw", |
1240 ] | 1240 ] |
1241 } | 1241 } |
1242 common_optimize_on_ldflags = [ "/OPT:ICF" ] # Redundant COMDAT folding. | 1242 common_optimize_on_ldflags = [] |
| 1243 if (!is_component_build) { |
| 1244 common_optimize_on_ldflags += [ "/OPT:ICF" ] # Redundant COMDAT folding. |
| 1245 } |
1243 if (is_official_build) { | 1246 if (is_official_build) { |
1244 common_optimize_on_ldflags += [ | 1247 common_optimize_on_ldflags += [ |
1245 "/OPT:REF", # Remove unreferenced data. | 1248 "/OPT:REF", # Remove unreferenced data. |
1246 "/LTCG", # Link-time code generation. | 1249 "/LTCG", # Link-time code generation. |
1247 | 1250 |
1248 # Set the number of LTCG code-gen threads to eight. The default is four. | 1251 # Set the number of LTCG code-gen threads to eight. The default is four. |
1249 # This gives a 5-10% link speedup. | 1252 # This gives a 5-10% link speedup. |
1250 "/cgthreads:8", | 1253 "/cgthreads:8", |
1251 ] | 1254 ] |
1252 if (full_wpo_on_official) { | 1255 if (full_wpo_on_official) { |
(...skipping 348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1601 | 1604 |
1602 if (is_ios || is_mac) { | 1605 if (is_ios || is_mac) { |
1603 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1606 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1604 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1607 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1605 config("enable_arc") { | 1608 config("enable_arc") { |
1606 common_flags = [ "-fobjc-arc" ] | 1609 common_flags = [ "-fobjc-arc" ] |
1607 cflags_objc = common_flags | 1610 cflags_objc = common_flags |
1608 cflags_objcc = common_flags | 1611 cflags_objcc = common_flags |
1609 } | 1612 } |
1610 } | 1613 } |
OLD | NEW |