| 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 835 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 846 cflags = [ | 846 cflags = [ |
| 847 "-Wall", | 847 "-Wall", |
| 848 | 848 |
| 849 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't, | 849 # GCC turns on -Wsign-compare for C++ under -Wall, but clang doesn't, |
| 850 # so we specify it explicitly. | 850 # so we specify it explicitly. |
| 851 # TODO(fischman): remove this if http://llvm.org/PR10448 obsoletes it. | 851 # TODO(fischman): remove this if http://llvm.org/PR10448 obsoletes it. |
| 852 # http://code.google.com/p/chromium/issues/detail?id=90453 | 852 # http://code.google.com/p/chromium/issues/detail?id=90453 |
| 853 "-Wsign-compare", | 853 "-Wsign-compare", |
| 854 ] | 854 ] |
| 855 | 855 |
| 856 cflags_c = [ "-std=c11" ] |
| 857 |
| 856 # In Chromium code, we define __STDC_foo_MACROS in order to get the | 858 # In Chromium code, we define __STDC_foo_MACROS in order to get the |
| 857 # C99 macros on Mac and Linux. | 859 # C99 macros on Mac and Linux. |
| 858 defines = [ | 860 defines = [ |
| 859 "__STDC_CONSTANT_MACROS", | 861 "__STDC_CONSTANT_MACROS", |
| 860 "__STDC_FORMAT_MACROS", | 862 "__STDC_FORMAT_MACROS", |
| 861 ] | 863 ] |
| 862 | 864 |
| 863 if (!is_debug && !using_sanitizer && | 865 if (!is_debug && !using_sanitizer && |
| 864 (!is_linux || !is_clang || is_official_build)) { | 866 (!is_linux || !is_clang || is_official_build)) { |
| 865 # _FORTIFY_SOURCE isn't really supported by Clang now, see | 867 # _FORTIFY_SOURCE isn't really supported by Clang now, see |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1117 if (symbol_level == 0) { | 1119 if (symbol_level == 0) { |
| 1118 configs = [ ":no_symbols" ] | 1120 configs = [ ":no_symbols" ] |
| 1119 } else if (symbol_level == 1) { | 1121 } else if (symbol_level == 1) { |
| 1120 configs = [ ":minimal_symbols" ] | 1122 configs = [ ":minimal_symbols" ] |
| 1121 } else if (symbol_level == 2) { | 1123 } else if (symbol_level == 2) { |
| 1122 configs = [ ":symbols" ] | 1124 configs = [ ":symbols" ] |
| 1123 } else { | 1125 } else { |
| 1124 assert(false) | 1126 assert(false) |
| 1125 } | 1127 } |
| 1126 } | 1128 } |
| OLD | NEW |