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 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 705 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
716 default_warning_flags_cc = [] | 716 default_warning_flags_cc = [] |
717 if (is_win) { | 717 if (is_win) { |
718 # TODO(thakis): Make this unconditional once llvm.org/PR24167 is fixed. | 718 # TODO(thakis): Make this unconditional once llvm.org/PR24167 is fixed. |
719 if (!is_clang || !is_asan) { | 719 if (!is_clang || !is_asan) { |
720 default_warning_flags += [ "/WX" ] # Treat warnings as errors. | 720 default_warning_flags += [ "/WX" ] # Treat warnings as errors. |
721 } | 721 } |
722 | 722 |
723 default_warning_flags += [ | 723 default_warning_flags += [ |
724 # Warnings permanently disabled: | 724 # Warnings permanently disabled: |
725 | 725 |
726 # TODO(GYP) The GYP build doesn't have this globally enabled but disabled | |
727 # for a bunch of individual targets. Re-enable this globally when those | |
728 # targets are fixed. | |
729 "/wd4018", # Comparing signed and unsigned values. | |
730 | |
731 # C4127: conditional expression is constant | 726 # C4127: conditional expression is constant |
732 # This warning can in theory catch dead code and other problems, but | 727 # This warning can in theory catch dead code and other problems, but |
733 # triggers in far too many desirable cases where the conditional | 728 # triggers in far too many desirable cases where the conditional |
734 # expression is either set by macros or corresponds some legitimate | 729 # expression is either set by macros or corresponds some legitimate |
735 # compile-time constant expression (due to constant template args, | 730 # compile-time constant expression (due to constant template args, |
736 # conditionals comparing the sizes of different types, etc.). Some of | 731 # conditionals comparing the sizes of different types, etc.). Some of |
737 # these can be worked around, but it's not worth it. | 732 # these can be worked around, but it's not worth it. |
738 "/wd4127", | 733 "/wd4127", |
739 | 734 |
740 # C4251: 'identifier' : class 'type' needs to have dll-interface to be | 735 # C4251: 'identifier' : class 'type' needs to have dll-interface to be |
(...skipping 522 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 cflags += [ "-gsplit-dwarf" ] | 1258 cflags += [ "-gsplit-dwarf" ] |
1264 } | 1259 } |
1265 } | 1260 } |
1266 } | 1261 } |
1267 | 1262 |
1268 config("no_symbols") { | 1263 config("no_symbols") { |
1269 if (!is_win) { | 1264 if (!is_win) { |
1270 cflags = [ "-g0" ] | 1265 cflags = [ "-g0" ] |
1271 } | 1266 } |
1272 } | 1267 } |
OLD | NEW |