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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
43 # stack frames. Setting this flag has a large effect on the performance of the | 43 # stack frames. Setting this flag has a large effect on the performance of the |
44 # generated code than just setting profiling, but gives the profiler more | 44 # generated code than just setting profiling, but gives the profiler more |
45 # information to analyze. | 45 # information to analyze. |
46 # Requires profiling to be set to true. | 46 # Requires profiling to be set to true. |
47 enable_full_stack_frames_for_profiling = false | 47 enable_full_stack_frames_for_profiling = false |
48 | 48 |
49 # When we are going to use gold we need to find it. | 49 # When we are going to use gold we need to find it. |
50 # This is initialized below, after use_gold might have been overridden. | 50 # This is initialized below, after use_gold might have been overridden. |
51 gold_path = false | 51 gold_path = false |
52 | 52 |
53 # use_debug_fission: whether to use split DWARF debug info | |
54 # files. This can reduce link time significantly, but is incompatible | |
55 # with some utilities such as icecc and ccache. Requires gold and | |
56 # gcc >= 4.8 or clang. | |
57 # http://gcc.gnu.org/wiki/DebugFission | |
58 # | |
59 # This is a placeholder value indicating that the code below should set | |
60 # the default. This is necessary to delay the evaluation of the default | |
61 # value expression until after its input values such as use_gold have | |
62 # been set, e.g. by a toolchain_args() block. | |
63 use_debug_fission = "default" | |
64 | |
65 if (is_win) { | 53 if (is_win) { |
66 # Whether the VS xtree header has been patched to disable warning 4702. If | 54 # Whether the VS xtree header has been patched to disable warning 4702. If |
67 # it has, then we don't need to disable 4702 (unreachable code warning). | 55 # it has, then we don't need to disable 4702 (unreachable code warning). |
68 # The patch is preapplied to the internal toolchain and hence all bots. | 56 # The patch is preapplied to the internal toolchain and hence all bots. |
69 msvs_xtree_patched = false | 57 msvs_xtree_patched = false |
70 } | 58 } |
71 | 59 |
72 # Omit unwind support in official builds to save space. | 60 # Omit unwind support in official builds to save space. |
73 # We can use breakpad for these builds. | 61 # We can use breakpad for these builds. |
74 exclude_unwind_tables = is_chrome_branded && is_official_build | 62 exclude_unwind_tables = is_chrome_branded && is_official_build |
(...skipping 1469 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1544 | 1532 |
1545 if (is_ios || is_mac) { | 1533 if (is_ios || is_mac) { |
1546 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1534 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1547 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1535 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1548 config("enable_arc") { | 1536 config("enable_arc") { |
1549 common_flags = [ "-fobjc-arc" ] | 1537 common_flags = [ "-fobjc-arc" ] |
1550 cflags_objc = common_flags | 1538 cflags_objc = common_flags |
1551 cflags_objcc = common_flags | 1539 cflags_objcc = common_flags |
1552 } | 1540 } |
1553 } | 1541 } |
OLD | NEW |