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

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

Issue 2214333004: Roll clang 274369:277642. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 277642 Created 4 years, 4 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/toolchain/toolchain.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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
67 # If true, gold linker will save symbol table inside object files. 67 # If true, gold linker will save symbol table inside object files.
68 # This speeds up gdb startup by 60% 68 # This speeds up gdb startup by 60%
69 gdb_index = false 69 gdb_index = false
70 70
71 # If true, optimize for size. Does not affect windows builds. 71 # If true, optimize for size. Does not affect windows builds.
72 # Linux & Mac favor speed over size. 72 # Linux & Mac favor speed over size.
73 # TODO(brettw) it's weird that Mac and desktop Linux are different. We should 73 # TODO(brettw) it's weird that Mac and desktop Linux are different. We should
74 # explore favoring size over speed in this case as well. 74 # explore favoring size over speed in this case as well.
75 optimize_for_size = is_android || is_ios 75 optimize_for_size = is_android || is_ios
76 76
77 # If this is set to true, or if LLVM_FORCE_HEAD_REVISION is set to 1
78 # in the environment, we use the revision in the llvm repo to determine
79 # the CLANG_REVISION to use, instead of the version hard-coded into
80 # //tools/clang/scripts/update.py. This should only be used in
81 # conjunction with setting LLVM_FORCE_HEAD_REVISION in the
82 # environment when `gclient runhooks` is run as well.
83 llvm_force_head_revision = false
84
77 # Enable fatal linker warnings. Building Chromium with certain versions 85 # Enable fatal linker warnings. Building Chromium with certain versions
78 # of binutils can cause linker warning. 86 # of binutils can cause linker warning.
79 # See: https://bugs.chromium.org/p/chromium/issues/detail?id=457359 87 # See: https://bugs.chromium.org/p/chromium/issues/detail?id=457359
80 fatal_linker_warnings = true 88 fatal_linker_warnings = true
81 } 89 }
82 90
83 if (is_clang && !is_nacl) { 91 if (is_clang && !is_nacl) {
84 update_args = [ "--print-revision" ] 92 update_args = [ "--print-revision" ]
85 if (llvm_force_head_revision) { 93 if (llvm_force_head_revision) {
86 update_args += [ "--llvm-force-head-revision" ] 94 update_args += [ "--llvm-force-head-revision" ]
(...skipping 1475 matching lines...) Expand 10 before | Expand all | Expand 10 after
1562 1570
1563 if (is_ios || is_mac) { 1571 if (is_ios || is_mac) {
1564 # On Mac and iOS, this enables support for ARC (automatic ref-counting). 1572 # On Mac and iOS, this enables support for ARC (automatic ref-counting).
1565 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html. 1573 # See http://clang.llvm.org/docs/AutomaticReferenceCounting.html.
1566 config("enable_arc") { 1574 config("enable_arc") {
1567 common_flags = [ "-fobjc-arc" ] 1575 common_flags = [ "-fobjc-arc" ]
1568 cflags_objc = common_flags 1576 cflags_objc = common_flags
1569 cflags_objcc = common_flags 1577 cflags_objcc = common_flags
1570 } 1578 }
1571 } 1579 }
OLDNEW
« no previous file with comments | « no previous file | build/toolchain/toolchain.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698