| 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 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 ldflags += [ | 288 ldflags += [ |
| 289 "-mips32r6", | 289 "-mips32r6", |
| 290 "-Wl,-melf32ltsmip", | 290 "-Wl,-melf32ltsmip", |
| 291 ] | 291 ] |
| 292 } | 292 } |
| 293 } else if (mips_arch_variant == "r2") { | 293 } else if (mips_arch_variant == "r2") { |
| 294 cflags += [ | 294 cflags += [ |
| 295 "-mips32r2", | 295 "-mips32r2", |
| 296 "-Wa,-mips32r2", | 296 "-Wa,-mips32r2", |
| 297 ] | 297 ] |
| 298 if (mips_fpu_mode != "") { | 298 if (mips_float_abi == "hard" && mips_fpu_mode != "") { |
| 299 cflags += [ "-m$mips_fpu_mode" ] | 299 cflags += [ "-m$mips_fpu_mode" ] |
| 300 } | 300 } |
| 301 } else if (mips_arch_variant == "r1") { | 301 } else if (mips_arch_variant == "r1") { |
| 302 cflags += [ | 302 cflags += [ |
| 303 "-mips32", | 303 "-mips32", |
| 304 "-Wa,-mips32", | 304 "-Wa,-mips32", |
| 305 ] | 305 ] |
| 306 } | 306 } |
| 307 | 307 |
| 308 if (mips_dsp_rev == 1) { | 308 if (mips_dsp_rev == 1) { |
| (...skipping 785 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1094 cflags += [ "-gsplit-dwarf" ] | 1094 cflags += [ "-gsplit-dwarf" ] |
| 1095 } | 1095 } |
| 1096 } | 1096 } |
| 1097 } | 1097 } |
| 1098 | 1098 |
| 1099 config("no_symbols") { | 1099 config("no_symbols") { |
| 1100 if (!is_win) { | 1100 if (!is_win) { |
| 1101 cflags = [ "-g0" ] | 1101 cflags = [ "-g0" ] |
| 1102 } | 1102 } |
| 1103 } | 1103 } |
| OLD | NEW |