OLD | NEW |
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 708 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
719 # http://crbug.com/255186 | 719 # http://crbug.com/255186 |
720 "-Wno-deprecated-register", | 720 "-Wno-deprecated-register", |
721 | 721 |
722 # TODO(thakis): This used to be implied by -Wno-unused-function, | 722 # TODO(thakis): This used to be implied by -Wno-unused-function, |
723 # which we no longer use. Check if it makes sense to remove | 723 # which we no longer use. Check if it makes sense to remove |
724 # this as well. http://crbug.com/316352 | 724 # this as well. http://crbug.com/316352 |
725 "-Wno-unneeded-internal-declaration", | 725 "-Wno-unneeded-internal-declaration", |
726 | 726 |
727 # TODO(thakis): Remove, http://crbug.com/263960 | 727 # TODO(thakis): Remove, http://crbug.com/263960 |
728 "-Wno-reserved-user-defined-literal", | 728 "-Wno-reserved-user-defined-literal", |
729 | |
730 # TODO(hans): Clean this up. Or disable with finer granularity. | |
731 "-Wno-unused-local-typedef", | |
732 ] | 729 ] |
733 } | 730 } |
734 if (gcc_version >= 48) { | 731 if (gcc_version >= 48) { |
735 cflags_cc += [ | 732 cflags_cc += [ |
736 # See comment for -Wno-c++11-narrowing. | 733 # See comment for -Wno-c++11-narrowing. |
737 "-Wno-narrowing", | 734 "-Wno-narrowing", |
738 # TODO(thakis): Remove, http://crbug.com/263960 | 735 # TODO(thakis): Remove, http://crbug.com/263960 |
739 "-Wno-literal-suffix", | 736 "-Wno-literal-suffix", |
740 ] | 737 ] |
741 } | 738 } |
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
937 cflags += [ "-gsplit-dwarf" ] | 934 cflags += [ "-gsplit-dwarf" ] |
938 } | 935 } |
939 } | 936 } |
940 } | 937 } |
941 | 938 |
942 config("no_symbols") { | 939 config("no_symbols") { |
943 if (!is_win) { | 940 if (!is_win) { |
944 cflags = [ "-g0" ] | 941 cflags = [ "-g0" ] |
945 } | 942 } |
946 } | 943 } |
OLD | NEW |