| 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 1640 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 if (!is_mac && !is_ios && !is_nacl && target_cpu != "x86" && | 1660 if (!is_mac && !is_ios && !is_nacl && target_cpu != "x86" && |
| 1661 !allow_posix_link_time_opt && !is_official_build) { | 1661 (use_gold || use_lld) && !allow_posix_link_time_opt && |
| 1662 !is_official_build) { |
| 1662 ldflags += [ "-Wl,--gdb-index" ] | 1663 ldflags += [ "-Wl,--gdb-index" ] |
| 1663 } | 1664 } |
| 1664 } | 1665 } |
| 1665 } | 1666 } |
| 1666 | 1667 |
| 1667 # Minimal symbols. | 1668 # Minimal symbols. |
| 1668 config("minimal_symbols") { | 1669 config("minimal_symbols") { |
| 1669 if (is_win) { | 1670 if (is_win) { |
| 1670 # Linker symbols for backtraces only. | 1671 # Linker symbols for backtraces only. |
| 1671 cflags = [] | 1672 cflags = [] |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1712 | 1713 |
| 1713 if (is_ios || is_mac) { | 1714 if (is_ios || is_mac) { |
| 1714 # On Mac and iOS, this enables support for ARC (automatic ref-counting). | 1715 # On Mac and iOS, this enables support for ARC (automatic ref-counting). |
| 1715 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. | 1716 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. |
| 1716 config("enable_arc") { | 1717 config("enable_arc") { |
| 1717 common_flags = [ "-fobjc-arc" ] | 1718 common_flags = [ "-fobjc-arc" ] |
| 1718 cflags_objc = common_flags | 1719 cflags_objc = common_flags |
| 1719 cflags_objcc = common_flags | 1720 cflags_objcc = common_flags |
| 1720 } | 1721 } |
| 1721 } | 1722 } |
| OLD | NEW |