| 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 1016 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1027 config("rtti") { | 1027 config("rtti") { |
| 1028 if (is_win) { | 1028 if (is_win) { |
| 1029 cflags_cc = [ "/GR" ] | 1029 cflags_cc = [ "/GR" ] |
| 1030 } | 1030 } |
| 1031 } | 1031 } |
| 1032 config("no_rtti") { | 1032 config("no_rtti") { |
| 1033 if (is_win) { | 1033 if (is_win) { |
| 1034 cflags_cc = [ "/GR-" ] | 1034 cflags_cc = [ "/GR-" ] |
| 1035 } else { | 1035 } else { |
| 1036 cflags_cc = [ "-fno-rtti" ] | 1036 cflags_cc = [ "-fno-rtti" ] |
| 1037 cflags_objcc = cflags_cc |
| 1037 } | 1038 } |
| 1038 } | 1039 } |
| 1039 | 1040 |
| 1040 # Warnings --------------------------------------------------------------------- | 1041 # Warnings --------------------------------------------------------------------- |
| 1041 | 1042 |
| 1042 # This will generate warnings when using Clang if code generates exit-time | 1043 # This will generate warnings when using Clang if code generates exit-time |
| 1043 # destructors, which will slow down closing the program. | 1044 # destructors, which will slow down closing the program. |
| 1044 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600 | 1045 # TODO(thakis): Make this a blacklist instead, http://crbug.com/101600 |
| 1045 config("wexit_time_destructors") { | 1046 config("wexit_time_destructors") { |
| 1046 # TODO: Enable on Windows too, http://crbug.com/404525 | 1047 # TODO: Enable on Windows too, http://crbug.com/404525 |
| (...skipping 211 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1258 cflags += [ "-gsplit-dwarf" ] | 1259 cflags += [ "-gsplit-dwarf" ] |
| 1259 } | 1260 } |
| 1260 } | 1261 } |
| 1261 } | 1262 } |
| 1262 | 1263 |
| 1263 config("no_symbols") { | 1264 config("no_symbols") { |
| 1264 if (!is_win) { | 1265 if (!is_win) { |
| 1265 cflags = [ "-g0" ] | 1266 cflags = [ "-g0" ] |
| 1266 } | 1267 } |
| 1267 } | 1268 } |
| OLD | NEW |