| 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 892 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 903 ] | 903 ] |
| 904 | 904 |
| 905 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost | 905 # NaCl's Clang compiler and Chrome's hermetic Clang compiler will almost |
| 906 # always have different versions. Certain flags may not be recognized by | 906 # always have different versions. Certain flags may not be recognized by |
| 907 # one version or the other. | 907 # one version or the other. |
| 908 if (!is_nacl) { | 908 if (!is_nacl) { |
| 909 # Flags NaCl does not recognize. | 909 # Flags NaCl does not recognize. |
| 910 default_warning_flags += [ | 910 default_warning_flags += [ |
| 911 # TODO(hans): Get this cleaned up, http://crbug.com/428099 | 911 # TODO(hans): Get this cleaned up, http://crbug.com/428099 |
| 912 "-Wno-inconsistent-missing-override", | 912 "-Wno-inconsistent-missing-override", |
| 913 |
| 914 # TODO(thakis): Enable this, crbug.com/507717 |
| 915 "-Wno-shift-negative-value", |
| 913 ] | 916 ] |
| 914 | |
| 915 if (exec_script("//tools/clang/scripts/update.py", | |
| 916 [ "--print-revision" ], | |
| 917 "trim string") != "239674-1") { | |
| 918 default_warning_flags += [ | |
| 919 # TODO(thakis): Move this into outer if once clang is rolled far enough | |
| 920 # that the pinned clang understands this flag. | |
| 921 # TODO(thakis): Enable this, crbug.com/507717 | |
| 922 "-Wno-shift-negative-value", | |
| 923 ] | |
| 924 } | |
| 925 } | 917 } |
| 926 } | 918 } |
| 927 | 919 |
| 928 # chromium_code --------------------------------------------------------------- | 920 # chromium_code --------------------------------------------------------------- |
| 929 # | 921 # |
| 930 # Toggles between higher and lower warnings for code that is (or isn't) | 922 # Toggles between higher and lower warnings for code that is (or isn't) |
| 931 # part of Chromium. | 923 # part of Chromium. |
| 932 | 924 |
| 933 config("chromium_code") { | 925 config("chromium_code") { |
| 934 if (is_win) { | 926 if (is_win) { |
| (...skipping 306 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1241 cflags += [ "-gsplit-dwarf" ] | 1233 cflags += [ "-gsplit-dwarf" ] |
| 1242 } | 1234 } |
| 1243 } | 1235 } |
| 1244 } | 1236 } |
| 1245 | 1237 |
| 1246 config("no_symbols") { | 1238 config("no_symbols") { |
| 1247 if (!is_win) { | 1239 if (!is_win) { |
| 1248 cflags = [ "-g0" ] | 1240 cflags = [ "-g0" ] |
| 1249 } | 1241 } |
| 1250 } | 1242 } |
| OLD | NEW |