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 if (current_cpu == "arm") { | 7 if (current_cpu == "arm") { |
8 import("//build/config/arm.gni") | 8 import("//build/config/arm.gni") |
9 } | 9 } |
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 | 44 |
45 # Use gold for linking on 64-bit Linux only (on 32-bit it runs out of | 45 # Use gold for linking on 64-bit Linux only (on 32-bit it runs out of |
46 # address space, and it doesn't support cross-compiling). | 46 # address space, and it doesn't support cross-compiling). |
47 use_gold = is_linux && current_cpu == "x64" | 47 use_gold = is_linux && current_cpu == "x64" |
48 | 48 |
49 # use_debug_fission: whether to use split DWARF debug info | 49 # use_debug_fission: whether to use split DWARF debug info |
50 # files. This can reduce link time significantly, but is incompatible | 50 # files. This can reduce link time significantly, but is incompatible |
51 # with some utilities such as icecc and ccache. Requires gold and | 51 # with some utilities such as icecc and ccache. Requires gold and |
52 # gcc >= 4.8 or clang. | 52 # gcc >= 4.8 or clang. |
53 # http://gcc.gnu.org/wiki/DebugFission | 53 # http://gcc.gnu.org/wiki/DebugFission |
54 use_debug_fission = is_debug && !is_win && use_gold && | 54 use_debug_fission = |
55 linux_use_bundled_binutils && !use_ccache | 55 !is_win && use_gold && linux_use_bundled_binutils && !use_ccache |
56 | 56 |
57 if (is_win) { | 57 if (is_win) { |
58 # Whether the VS xtree header has been patched to disable warning 4702. If | 58 # Whether the VS xtree header has been patched to disable warning 4702. If |
59 # it has, then we don't need to disable 4702 (unreachable code warning). | 59 # it has, then we don't need to disable 4702 (unreachable code warning). |
60 # The patch is preapplied to the internal toolchain and hence all bots. | 60 # The patch is preapplied to the internal toolchain and hence all bots. |
61 msvs_xtree_patched = false | 61 msvs_xtree_patched = false |
62 } | 62 } |
63 } | 63 } |
64 | 64 |
65 # default_include_dirs --------------------------------------------------------- | 65 # default_include_dirs --------------------------------------------------------- |
(...skipping 1191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1257 cflags += [ "-gsplit-dwarf" ] | 1257 cflags += [ "-gsplit-dwarf" ] |
1258 } | 1258 } |
1259 } | 1259 } |
1260 } | 1260 } |
1261 | 1261 |
1262 config("no_symbols") { | 1262 config("no_symbols") { |
1263 if (!is_win) { | 1263 if (!is_win) { |
1264 cflags = [ "-g0" ] | 1264 cflags = [ "-g0" ] |
1265 } | 1265 } |
1266 } | 1266 } |
OLD | NEW |