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

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

Issue 299663014: Suppress psabi warnings in GN build. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: grammar Created 6 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 | Annotate | Revision Log
« 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 if (cpu_arch == "arm") { 6 if (cpu_arch == "arm") {
7 import("//build/config/arm.gni") 7 import("//build/config/arm.gni")
8 } 8 }
9 if (is_posix) { 9 if (is_posix) {
10 import("//build/config/gcc/gcc_version.gni") 10 import("//build/config/gcc/gcc_version.gni")
(...skipping 585 matching lines...) Expand 10 before | Expand all | Expand 10 after
596 # Clang considers the `register` keyword as deprecated, but e.g. 596 # Clang considers the `register` keyword as deprecated, but e.g.
597 # code generated by flex (used in angle) contains that keyword. 597 # code generated by flex (used in angle) contains that keyword.
598 # http://crbug.com/255186 598 # http://crbug.com/255186
599 "-Wno-deprecated-register", 599 "-Wno-deprecated-register",
600 600
601 # Clang spots more unused functions. 601 # Clang spots more unused functions.
602 "-Wno-unused-function", 602 "-Wno-unused-function",
603 ] 603 ]
604 } 604 }
605 605
606 # Suppress warnings about ABI changes on ARM (Clang doesn't support this).
Nico 2014/05/21 19:43:59 "support" is a strange word for working around sil
brettw 2014/05/21 20:07:32 I clarified this.
607 if (cpu_arch == "arm" && !is_clang) {
608 cflags += [ "-Wno-psabi" ]
609 }
610
606 if (is_android) { 611 if (is_android) {
607 # Disable any additional warnings enabled by the Android build system but 612 # Disable any additional warnings enabled by the Android build system but
608 # which chromium does not build cleanly with (when treating warning as 613 # which chromium does not build cleanly with (when treating warning as
609 # errors). 614 # errors).
610 cflags += [ 615 cflags += [
611 "-Wno-extra", 616 "-Wno-extra",
612 "-Wno-ignored-qualifiers", 617 "-Wno-ignored-qualifiers",
613 "-Wno-type-limits", 618 "-Wno-type-limits",
614 ] 619 ]
615 cflags_cc = [ 620 cflags_cc = [
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
777 } else { 782 } else {
778 cflags = [ "-g1" ] 783 cflags = [ "-g1" ]
779 } 784 }
780 } 785 }
781 786
782 config("no_symbols") { 787 config("no_symbols") {
783 if (!is_win) { 788 if (!is_win) {
784 cflags = [ "-g0" ] 789 cflags = [ "-g0" ]
785 } 790 }
786 } 791 }
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