| 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 (current_cpu == "arm") { | 6 if (current_cpu == "arm") { |
| 7 import("//build/config/arm.gni") | 7 import("//build/config/arm.gni") |
| 8 } | 8 } |
| 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { | 9 if (current_cpu == "mipsel" || current_cpu == "mips64el") { |
| 10 import("//build/config/mips.gni") | 10 import("//build/config/mips.gni") |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 219 # compiler (r5-r7). This can be verified using | 219 # compiler (r5-r7). This can be verified using |
| 220 # webkit_unit_tests' WTF.Checked_int8_t test. | 220 # webkit_unit_tests' WTF.Checked_int8_t test. |
| 221 "-fno-tree-sra", | 221 "-fno-tree-sra", |
| 222 | 222 |
| 223 # The following option is disabled to improve binary | 223 # The following option is disabled to improve binary |
| 224 # size and performance in gcc 4.9. | 224 # size and performance in gcc 4.9. |
| 225 "-fno-caller-saves", | 225 "-fno-caller-saves", |
| 226 ] | 226 ] |
| 227 } | 227 } |
| 228 } else if (current_cpu == "mipsel") { | 228 } else if (current_cpu == "mipsel") { |
| 229 # Some toolchains default to big-endian. |
| 230 cflags += [ "-EL" ] |
| 231 ldflags += [ "-EL" ] |
| 232 |
| 229 # We have to explicitly request exceptions to get good heap profiles from | 233 # We have to explicitly request exceptions to get good heap profiles from |
| 230 # tcmalloc. | 234 # tcmalloc. |
| 231 if (is_debug || is_release) { | 235 if (is_debug || is_release) { |
| 232 cflags += [ | 236 cflags += [ |
| 233 "-fexceptions", | 237 "-fexceptions", |
| 234 "-funwind-tables", | 238 "-funwind-tables", |
| 235 ] | 239 ] |
| 236 } | 240 } |
| 237 | 241 |
| 238 if (mips_arch_variant == "r6") { | 242 if (mips_arch_variant == "r6") { |
| (...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 763 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. | 767 cflags = [ "/Zi" ] # Produce PDB file, no edit and continue. |
| 764 } | 768 } |
| 765 ldflags = [ "/DEBUG" ] | 769 ldflags = [ "/DEBUG" ] |
| 766 } else { | 770 } else { |
| 767 cflags = [ | 771 cflags = [ |
| 768 "-g3", | 772 "-g3", |
| 769 "-ggdb3", | 773 "-ggdb3", |
| 770 ] | 774 ] |
| 771 } | 775 } |
| 772 } | 776 } |
| OLD | NEW |