| 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 832 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 843 # | 843 # |
| 844 # Toggles between higher and lower warnings for code that is (or isn't) | 844 # Toggles between higher and lower warnings for code that is (or isn't) |
| 845 # part of Chromium. | 845 # part of Chromium. |
| 846 | 846 |
| 847 config("chromium_code") { | 847 config("chromium_code") { |
| 848 cflags = [ | 848 cflags = [ |
| 849 "-Wall", | 849 "-Wall", |
| 850 "-Wextra", | 850 "-Wextra", |
| 851 ] | 851 ] |
| 852 | 852 |
| 853 cflags_c = [ "-std=c11" ] |
| 854 |
| 853 # In Chromium code, we define __STDC_foo_MACROS in order to get the | 855 # In Chromium code, we define __STDC_foo_MACROS in order to get the |
| 854 # C99 macros on Mac and Linux. | 856 # C99 macros on Mac and Linux. |
| 855 defines = [ | 857 defines = [ |
| 856 "__STDC_CONSTANT_MACROS", | 858 "__STDC_CONSTANT_MACROS", |
| 857 "__STDC_FORMAT_MACROS", | 859 "__STDC_FORMAT_MACROS", |
| 858 ] | 860 ] |
| 859 | 861 |
| 860 if (!is_debug && !using_sanitizer && | 862 if (!is_debug && !using_sanitizer && |
| 861 (!is_linux || !is_clang || is_official_build)) { | 863 (!is_linux || !is_clang || is_official_build)) { |
| 862 # _FORTIFY_SOURCE isn't really supported by Clang now, see | 864 # _FORTIFY_SOURCE isn't really supported by Clang now, see |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1114 if (symbol_level == 0) { | 1116 if (symbol_level == 0) { |
| 1115 configs = [ ":no_symbols" ] | 1117 configs = [ ":no_symbols" ] |
| 1116 } else if (symbol_level == 1) { | 1118 } else if (symbol_level == 1) { |
| 1117 configs = [ ":minimal_symbols" ] | 1119 configs = [ ":minimal_symbols" ] |
| 1118 } else if (symbol_level == 2) { | 1120 } else if (symbol_level == 2) { |
| 1119 configs = [ ":symbols" ] | 1121 configs = [ ":symbols" ] |
| 1120 } else { | 1122 } else { |
| 1121 assert(false) | 1123 assert(false) |
| 1122 } | 1124 } |
| 1123 } | 1125 } |
| OLD | NEW |