Chromium Code Reviews| 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 1051 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1062 # Note that this can be applied regardless of platform and architecture to | 1062 # Note that this can be applied regardless of platform and architecture to |
| 1063 # clean up the call sites. This will only apply the flag when necessary. | 1063 # clean up the call sites. This will only apply the flag when necessary. |
| 1064 # | 1064 # |
| 1065 # TODO(jschuh): crbug.com/167187 fix this and delete this config. | 1065 # TODO(jschuh): crbug.com/167187 fix this and delete this config. |
| 1066 config("no_size_t_to_int_warning") { | 1066 config("no_size_t_to_int_warning") { |
| 1067 if (is_win && current_cpu == "x64") { | 1067 if (is_win && current_cpu == "x64") { |
| 1068 cflags = [ "/wd4267" ] | 1068 cflags = [ "/wd4267" ] |
| 1069 } | 1069 } |
| 1070 } | 1070 } |
| 1071 | 1071 |
| 1072 # Some code presumes that pointers to structures/objects are compatible | |
| 1073 # regardless of whether what they point to is already known to be valid. | |
| 1074 config("no_incompatible_pointer_warnings") { | |
| 1075 cflags = [] | |
| 1076 if (is_clang) { | |
| 1077 cflags += [ "-Wno-incompatible-pointer-types" ] | |
|
jamesr
2015/10/20 23:06:54
we should open a bug on this, this is not a good w
| |
| 1078 } | |
| 1079 } | |
| 1080 | |
| 1072 # Optimization ----------------------------------------------------------------- | 1081 # Optimization ----------------------------------------------------------------- |
| 1073 # | 1082 # |
| 1074 # Note that BUILDCONFIG.gn sets up a variable "default_optimization_config" | 1083 # Note that BUILDCONFIG.gn sets up a variable "default_optimization_config" |
| 1075 # which it will assign to the config it implicitly applies to every target. If | 1084 # which it will assign to the config it implicitly applies to every target. If |
| 1076 # you want to override the optimization level for your target, remove this | 1085 # you want to override the optimization level for your target, remove this |
| 1077 # config (which will expand differently for debug or release builds), and then | 1086 # config (which will expand differently for debug or release builds), and then |
| 1078 # add back the one you want to override it with: | 1087 # add back the one you want to override it with: |
| 1079 # | 1088 # |
| 1080 # configs -= default_optimization_config | 1089 # configs -= default_optimization_config |
| 1081 # configs += [ "//build/config/compiler/optimize_max" ] | 1090 # configs += [ "//build/config/compiler/optimize_max" ] |
| (...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1246 cflags += [ "-gsplit-dwarf" ] | 1255 cflags += [ "-gsplit-dwarf" ] |
| 1247 } | 1256 } |
| 1248 } | 1257 } |
| 1249 } | 1258 } |
| 1250 | 1259 |
| 1251 config("no_symbols") { | 1260 config("no_symbols") { |
| 1252 if (!is_win) { | 1261 if (!is_win) { |
| 1253 cflags = [ "-g0" ] | 1262 cflags = [ "-g0" ] |
| 1254 } | 1263 } |
| 1255 } | 1264 } |
| OLD | NEW |