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 1029 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1040 if (!is_nacl) { | 1040 if (!is_nacl) { |
1041 # Flags NaCl does not recognize. | 1041 # Flags NaCl does not recognize. |
1042 default_warning_flags += [ | 1042 default_warning_flags += [ |
1043 # TODO(hans): Get this cleaned up, http://crbug.com/428099 | 1043 # TODO(hans): Get this cleaned up, http://crbug.com/428099 |
1044 "-Wno-inconsistent-missing-override", | 1044 "-Wno-inconsistent-missing-override", |
1045 | 1045 |
1046 # TODO(thakis): Enable this, crbug.com/507717 | 1046 # TODO(thakis): Enable this, crbug.com/507717 |
1047 "-Wno-shift-negative-value", | 1047 "-Wno-shift-negative-value", |
1048 ] | 1048 ] |
1049 } | 1049 } |
| 1050 |
| 1051 if (exec_script("//tools/clang/scripts/update.py", |
| 1052 [ "--print-revision" ], |
| 1053 "trim string") != "245965-1") { |
| 1054 default_warning_flags += [ |
| 1055 # TODO(thakis): Move this into outer if once clang is rolled far enough |
| 1056 # that the pinned clang understands this flag. |
| 1057 # TODO(thakis): Consider enabling this? |
| 1058 "-Wno-bitfield-width", |
| 1059 ] |
| 1060 } |
1050 } | 1061 } |
1051 | 1062 |
1052 # chromium_code --------------------------------------------------------------- | 1063 # chromium_code --------------------------------------------------------------- |
1053 # | 1064 # |
1054 # Toggles between higher and lower warnings for code that is (or isn't) | 1065 # Toggles between higher and lower warnings for code that is (or isn't) |
1055 # part of Chromium. | 1066 # part of Chromium. |
1056 | 1067 |
1057 config("chromium_code") { | 1068 config("chromium_code") { |
1058 if (is_win) { | 1069 if (is_win) { |
1059 cflags = [ "/W4" ] # Warning level 4. | 1070 cflags = [ "/W4" ] # Warning level 4. |
(...skipping 351 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1411 cflags += [ "-gsplit-dwarf" ] | 1422 cflags += [ "-gsplit-dwarf" ] |
1412 } | 1423 } |
1413 } | 1424 } |
1414 } | 1425 } |
1415 | 1426 |
1416 config("no_symbols") { | 1427 config("no_symbols") { |
1417 if (!is_win) { | 1428 if (!is_win) { |
1418 cflags = [ "-g0" ] | 1429 cflags = [ "-g0" ] |
1419 } | 1430 } |
1420 } | 1431 } |
OLD | NEW |