Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(457)

Side by Side Diff: build/config/compiler/BUILD.gn

Issue 1951133002: Use gold and the bundled binutils on x86 by default (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: merge Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | build/config/compiler/compiler.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 16 matching lines...) Expand all
27 treat_warnings_as_errors = true 27 treat_warnings_as_errors = true
28 28
29 # Normally, Android builds are lightly optimized, even for debug builds, to 29 # Normally, Android builds are lightly optimized, even for debug builds, to
30 # keep binary size down. Setting this flag to true disables such optimization 30 # keep binary size down. Setting this flag to true disables such optimization
31 android_full_debug = false 31 android_full_debug = false
32 32
33 # Whether to use the binary binutils checked into third_party/binutils. 33 # Whether to use the binary binutils checked into third_party/binutils.
34 # These are not multi-arch so cannot be used except on x86 and x86-64 (the 34 # These are not multi-arch so cannot be used except on x86 and x86-64 (the
35 # only two architectures that are currently checked in). Turn this off when 35 # only two architectures that are currently checked in). Turn this off when
36 # you are using a custom toolchain and need to control -B in cflags. 36 # you are using a custom toolchain and need to control -B in cflags.
37 linux_use_bundled_binutils = is_linux && current_cpu == "x64" 37 linux_use_bundled_binutils =
38 is_linux && (current_cpu == "x64" || current_cpu == "x86")
38 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin", 39 binutils_path = rebase_path("//third_party/binutils/Linux_x64/Release/bin",
39 root_build_dir) 40 root_build_dir)
40 41
41 # Compile in such a way as to make it possible for the profiler to unwind full 42 # Compile in such a way as to make it possible for the profiler to unwind full
42 # 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
43 # generated code than just setting profiling, but gives the profiler more 44 # generated code than just setting profiling, but gives the profiler more
44 # information to analyze. 45 # information to analyze.
45 # Requires profiling to be set to true. 46 # Requires profiling to be set to true.
46 enable_full_stack_frames_for_profiling = false 47 enable_full_stack_frames_for_profiling = false
47 48
(...skipping 1426 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 1475
1475 if (is_ios || is_mac) { 1476 if (is_ios || is_mac) {
1476 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1477 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1477 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1478 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1478 config("enable_arc") { 1479 config("enable_arc") {
1479 common_flags = [ "-fobjc-arc" ] 1480 common_flags = [ "-fobjc-arc" ]
1480 cflags_objc = common_flags 1481 cflags_objc = common_flags
1481 cflags_objcc = common_flags 1482 cflags_objcc = common_flags
1482 } 1483 }
1483 } 1484 }
OLDNEW
« no previous file with comments | « no previous file | build/config/compiler/compiler.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698