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/ccache.gni") | 9 import("//build/toolchain/ccache.gni") |
10 | 10 |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
46 # Compile in such a way as to make it possible for the profiler to unwind full | 46 # Compile in such a way as to make it possible for the profiler to unwind full |
47 # stack frames. Setting this flag has a large effect on the performance of the | 47 # stack frames. Setting this flag has a large effect on the performance of the |
48 # generated code than just setting profiling, but gives the profiler more | 48 # generated code than just setting profiling, but gives the profiler more |
49 # information to analyze. | 49 # information to analyze. |
50 # Requires profiling to be set to true. | 50 # Requires profiling to be set to true. |
51 enable_full_stack_frames_for_profiling = false | 51 enable_full_stack_frames_for_profiling = false |
52 | 52 |
53 # TODO(GYP): We should be using 64-bit gold for linking on both 64-bit Linux | 53 # TODO(GYP): We should be using 64-bit gold for linking on both 64-bit Linux |
54 # and 32-bit linux; 32-bit Gold runs out of address-space on 32-bit builds. | 54 # and 32-bit linux; 32-bit Gold runs out of address-space on 32-bit builds. |
55 # However, something isn't quite working right on the 32-bit builds. | 55 # However, something isn't quite working right on the 32-bit builds. |
56 use_gold = is_linux && current_cpu == "x64" | 56 use_gold = is_linux && (current_cpu == "x64" || current_cpu == "arm") |
57 | 57 |
58 # When we are going to use gold we need to find it. | 58 # When we are going to use gold we need to find it. |
59 # This is initialized below, after use_gold might have been overridden. | 59 # This is initialized below, after use_gold might have been overridden. |
60 gold_path = false | 60 gold_path = false |
61 | 61 |
62 # use_debug_fission: whether to use split DWARF debug info | 62 # use_debug_fission: whether to use split DWARF debug info |
63 # files. This can reduce link time significantly, but is incompatible | 63 # files. This can reduce link time significantly, but is incompatible |
64 # with some utilities such as icecc and ccache. Requires gold and | 64 # with some utilities such as icecc and ccache. Requires gold and |
65 # gcc >= 4.8 or clang. | 65 # gcc >= 4.8 or clang. |
66 # http://gcc.gnu.org/wiki/DebugFission | 66 # http://gcc.gnu.org/wiki/DebugFission |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
546 ldflags += [ | 546 ldflags += [ |
547 "-arch", | 547 "-arch", |
548 "x86-32-nonsfi", | 548 "x86-32-nonsfi", |
549 "--target=i686-unknown-nacl", | 549 "--target=i686-unknown-nacl", |
550 ] | 550 ] |
551 } else if (target_cpu == "arm") { | 551 } else if (target_cpu == "arm") { |
552 cflags += [ | 552 cflags += [ |
553 "-arch", | 553 "-arch", |
554 "arm-nonsfi", | 554 "arm-nonsfi", |
555 "--pnacl-bias=arm-nonsfi", | 555 "--pnacl-bias=arm-nonsfi", |
556 "--target=arm-unknown-nacl", | |
Mark Seaborn
2015/12/03 20:02:18
FYI, this doesn't match the Gyp build exactly. He
| |
556 ] | 557 ] |
557 ldflags += [ | 558 ldflags += [ |
558 "-arch", | 559 "-arch", |
559 "arm-nonsfi", | 560 "arm-nonsfi", |
560 ] | 561 ] |
561 } | 562 } |
562 } | 563 } |
563 } | 564 } |
564 | 565 |
565 asmflags = cflags | 566 asmflags = cflags |
(...skipping 742 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1308 if (symbol_level == 0) { | 1309 if (symbol_level == 0) { |
1309 configs = [ ":no_symbols" ] | 1310 configs = [ ":no_symbols" ] |
1310 } else if (symbol_level == 1) { | 1311 } else if (symbol_level == 1) { |
1311 configs = [ ":minimal_symbols" ] | 1312 configs = [ ":minimal_symbols" ] |
1312 } else if (symbol_level == 2) { | 1313 } else if (symbol_level == 2) { |
1313 configs = [ ":symbols" ] | 1314 configs = [ ":symbols" ] |
1314 } else { | 1315 } else { |
1315 assert(false) | 1316 assert(false) |
1316 } | 1317 } |
1317 } | 1318 } |
OLD | NEW |