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/chromecast_build.gni") | 7 import("//build/config/chromecast_build.gni") |
8 import("//build/config/compiler/compiler.gni") | 8 import("//build/config/compiler/compiler.gni") |
9 import("//build/config/nacl/config.gni") | 9 import("//build/config/nacl/config.gni") |
10 import("//build/toolchain/cc_wrapper.gni") | 10 import("//build/toolchain/cc_wrapper.gni") |
(...skipping 1639 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1650 | 1650 |
1651 # TODO(thakis): Figure out if there's a way to make this go for 32-bit, | 1651 # TODO(thakis): Figure out if there's a way to make this go for 32-bit, |
1652 # currently we get "warning: | 1652 # currently we get "warning: |
1653 # obj/native_client/src/trusted/service_runtime/sel_asm/nacl_switch_32.o: | 1653 # obj/native_client/src/trusted/service_runtime/sel_asm/nacl_switch_32.o: |
1654 # DWARF info may be corrupt; offsets in a range list entry are in different | 1654 # DWARF info may be corrupt; offsets in a range list entry are in different |
1655 # sections" there. Maybe just a bug in nacl_switch_32.S. | 1655 # sections" there. Maybe just a bug in nacl_switch_32.S. |
1656 # TODO(thakis): Figure out if there's a way to make this go for official | 1656 # TODO(thakis): Figure out if there's a way to make this go for official |
1657 # builds, currently get | 1657 # builds, currently get |
1658 # "third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: | 1658 # "third_party/binutils/Linux_x64/Release/bin/ld.gold: warning: |
1659 # /tmp/lto-llvm-0b5201.o: corrupt debug info in .debug_info" | 1659 # /tmp/lto-llvm-0b5201.o: corrupt debug info in .debug_info" |
1660 # TODO(thakis): Figure out how to make this go for Linux ARM64 Debug, | |
kjellander_chromium
2017/04/04 09:06:19
Are you OK with me assigning a TODO for you? I per
| |
1661 # currently get: | |
1662 # /usr/bin/aarch64-linux-gnu-ld: unrecognized option '--gdb-index' | |
1660 if (!is_mac && !is_ios && !is_nacl && target_cpu != "x86" && | 1663 if (!is_mac && !is_ios && !is_nacl && target_cpu != "x86" && |
1664 !(is_linux && target_cpu == "arm64" && is_debug) && | |
Nico
2017/04/04 13:47:29
This is because we don't use gold in this config,
kjellander_chromium
2017/04/04 14:35:35
Something along those lines sounds like the proper
Nico
2017/04/04 14:50:06
Oh, I guess I mean (use_gold || use_lld) without t
kjellander_chromium
2017/04/04 14:59:36
:)
That works much better.
| |
1661 !allow_posix_link_time_opt && !is_official_build) { | 1665 !allow_posix_link_time_opt && !is_official_build) { |
1662 ldflags += [ "-Wl,--gdb-index" ] | 1666 ldflags += [ "-Wl,--gdb-index" ] |
1663 } | 1667 } |
1664 } | 1668 } |
1665 } | 1669 } |
1666 | 1670 |
1667 # Minimal symbols. | 1671 # Minimal symbols. |
1668 config("minimal_symbols") { | 1672 config("minimal_symbols") { |
1669 if (is_win) { | 1673 if (is_win) { |
1670 # Linker symbols for backtraces only. | 1674 # Linker symbols for backtraces only. |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1712 | 1716 |
1713 if (is_ios || is_mac) { | 1717 if (is_ios || is_mac) { |
1714 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1718 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
1715 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1719 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
1716 config("enable_arc") { | 1720 config("enable_arc") { |
1717 common_flags = [ "-fobjc-arc" ] | 1721 common_flags = [ "-fobjc-arc" ] |
1718 cflags_objc = common_flags | 1722 cflags_objc = common_flags |
1719 cflags_objcc = common_flags | 1723 cflags_objcc = common_flags |
1720 } | 1724 } |
1721 } | 1725 } |
OLD | NEW |