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

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

Issue 1295023004: gn/clang: Only pass -Wno-reserved-user-defined-literal on Linux and Android. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | no next file » | 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 941 matching lines...) Expand 10 before | Expand all | Expand 10 after
952 952
953 # Clang considers the `register` keyword as deprecated, but e.g. 953 # Clang considers the `register` keyword as deprecated, but e.g.
954 # code generated by flex (used in angle) contains that keyword. 954 # code generated by flex (used in angle) contains that keyword.
955 # http://crbug.com/255186 955 # http://crbug.com/255186
956 "-Wno-deprecated-register", 956 "-Wno-deprecated-register",
957 957
958 # TODO(thakis): This used to be implied by -Wno-unused-function, 958 # TODO(thakis): This used to be implied by -Wno-unused-function,
959 # which we no longer use. Check if it makes sense to remove 959 # which we no longer use. Check if it makes sense to remove
960 # this as well. http://crbug.com/316352 960 # this as well. http://crbug.com/316352
961 "-Wno-unneeded-internal-declaration", 961 "-Wno-unneeded-internal-declaration",
962 ]
962 963
963 # TODO(thakis): Remove, http://crbug.com/263960 964 if (is_posix && !is_mac && !is_ios) {
964 "-Wno-reserved-user-defined-literal", 965 default_warning_flags += [
965 ] 966 # TODO(thakis): Remove, http://crbug.com/263960
967 "-Wno-reserved-user-defined-literal",
968 ]
969 }
966 970
967 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost 971 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost
968 # always have different versions. Certain flags may not be recognized by 972 # always have different versions. Certain flags may not be recognized by
969 # one version or the other. 973 # one version or the other.
970 if (!is_nacl) { 974 if (!is_nacl) {
971 # Flags NaCl does not recognize. 975 # Flags NaCl does not recognize.
972 default_warning_flags += [ 976 default_warning_flags += [
973 # TODO(hans): Get this cleaned up, http://crbug.com/428099 977 # TODO(hans): Get this cleaned up, http://crbug.com/428099
974 "-Wno-inconsistent-missing-override", 978 "-Wno-inconsistent-missing-override",
975 979
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
1331 cflags += [ "-gsplit-dwarf" ] 1335 cflags += [ "-gsplit-dwarf" ]
1332 } 1336 }
1333 } 1337 }
1334 } 1338 }
1335 1339
1336 config("no_symbols") { 1340 config("no_symbols") {
1337 if (!is_win) { 1341 if (!is_win) {
1338 cflags = [ "-g0" ] 1342 cflags = [ "-g0" ]
1339 } 1343 }
1340 } 1344 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698