| 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 if (cpu_arch == "arm") { | 6 if (cpu_arch == "arm") { |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 } | 8 } |
| 9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") { | 9 if (cpu_arch == "mipsel" || cpu_arch == "mips64el") { |
| 10 import("//build/config/mips.gni") | 10 import("//build/config/mips.gni") |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 882 } | 882 } |
| 883 | 883 |
| 884 # On Windows compiling on x64, VC will issue a warning when converting | 884 # On Windows compiling on x64, VC will issue a warning when converting |
| 885 # size_t to int because it will truncate the value. Our code should not have | 885 # size_t to int because it will truncate the value. Our code should not have |
| 886 # these warnings and one should use a static_cast or a checked_cast for the | 886 # these warnings and one should use a static_cast or a checked_cast for the |
| 887 # conversion depending on the case. However, a lot of code still needs to be | 887 # conversion depending on the case. However, a lot of code still needs to be |
| 888 # fixed. Apply this config to such targets to disable the warning. | 888 # fixed. Apply this config to such targets to disable the warning. |
| 889 # | 889 # |
| 890 # Note that this can be applied regardless of platform and architecture to | 890 # Note that this can be applied regardless of platform and architecture to |
| 891 # clean up the call sites. This will only apply the flag when necessary. | 891 # clean up the call sites. This will only apply the flag when necessary. |
| 892 # |
| 893 # TODO(jschuh): crbug.com/167187 fix this and delete this config. |
| 892 config("no_size_t_to_int_warning") { | 894 config("no_size_t_to_int_warning") { |
| 893 if (is_win && cpu_arch == "x64") { | 895 if (is_win && cpu_arch == "x64") { |
| 894 cflags = [ "/wd4267" ] | 896 cflags = [ "/wd4267" ] |
| 895 } | 897 } |
| 896 } | 898 } |
| 897 | 899 |
| 898 # Optimization ----------------------------------------------------------------- | 900 # Optimization ----------------------------------------------------------------- |
| 899 # | 901 # |
| 900 # Note that BUILDCONFIG.gn sets up a variable "default_optimization_config" | 902 # Note that BUILDCONFIG.gn sets up a variable "default_optimization_config" |
| 901 # which it will assign to the config it implicitly applies to every target. If | 903 # which it will assign to the config it implicitly applies to every target. If |
| (...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1067 cflags += [ "-gsplit-dwarf" ] | 1069 cflags += [ "-gsplit-dwarf" ] |
| 1068 } | 1070 } |
| 1069 } | 1071 } |
| 1070 } | 1072 } |
| 1071 | 1073 |
| 1072 config("no_symbols") { | 1074 config("no_symbols") { |
| 1073 if (!is_win) { | 1075 if (!is_win) { |
| 1074 cflags = [ "-g0" ] | 1076 cflags = [ "-g0" ] |
| 1075 } | 1077 } |
| 1076 } | 1078 } |
| OLD | NEW |