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

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

Issue 1229653005: roll clang 239765:241602 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gnbleh Created 5 years, 5 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 | « build/common.gypi ('k') | tools/clang/scripts/package.py » ('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 if (current_cpu == "arm") { 7 if (current_cpu == "arm") {
8 import("//build/config/arm.gni") 8 import("//build/config/arm.gni")
9 } 9 }
10 if (current_cpu == "mipsel" || current_cpu == "mips64el") { 10 if (current_cpu == "mipsel" || current_cpu == "mips64el") {
(...skipping 907 matching lines...) Expand 10 before | Expand all | Expand 10 after
918 918
919 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost 919 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost
920 # always have different versions. Certain flags may not be recognized by 920 # always have different versions. Certain flags may not be recognized by
921 # one version or the other. 921 # one version or the other.
922 if (!is_nacl) { 922 if (!is_nacl) {
923 # Flags NaCl does not recognize. 923 # Flags NaCl does not recognize.
924 default_warning_flags += [ 924 default_warning_flags += [
925 # TODO(hans): Get this cleaned up, http://crbug.com/428099 925 # TODO(hans): Get this cleaned up, http://crbug.com/428099
926 "-Wno-inconsistent-missing-override", 926 "-Wno-inconsistent-missing-override",
927 ] 927 ]
928
929 if (exec_script("//tools/clang/scripts/update.py",
930 [ "--print-revision" ],
931 "trim string") != "239674-1") {
932 default_warning_flags += [
933 # TODO(thakis): Move this into outer if once clang is rolled far enough
934 # that the pinned clang understands this flag.
935 # TODO(thakis): Enable this, crbug.com/507717
936 "-Wno-shift-negative-value",
937 ]
938 }
928 } 939 }
929 } 940 }
930 941
931 # chromium_code --------------------------------------------------------------- 942 # chromium_code ---------------------------------------------------------------
932 # 943 #
933 # Toggles between higher and lower warnings for code that is (or isn't) 944 # Toggles between higher and lower warnings for code that is (or isn't)
934 # part of Chromium. 945 # part of Chromium.
935 946
936 config("chromium_code") { 947 config("chromium_code") {
937 if (is_win) { 948 if (is_win) {
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
1232 cflags += [ "-gsplit-dwarf" ] 1243 cflags += [ "-gsplit-dwarf" ]
1233 } 1244 }
1234 } 1245 }
1235 } 1246 }
1236 1247
1237 config("no_symbols") { 1248 config("no_symbols") {
1238 if (!is_win) { 1249 if (!is_win) {
1239 cflags = [ "-g0" ] 1250 cflags = [ "-g0" ]
1240 } 1251 }
1241 } 1252 }
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | tools/clang/scripts/package.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698