Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(201)

Side by Side Diff: build/config/mips.gni

Issue 2070653003: Rework v8_target_arch / target_cpu approach to use v8_target_cpu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update w/ review feedback Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/config/arm.gni ('k') | build/config/v8_target_cpu.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2015 The Chromium Authors. All rights reserved. 1 # Copyright 2015 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 if (current_cpu == "mipsel" || target_cpu == "mipsel") { 5 import("//build/config/v8_target_cpu.gni")
6
7 # These are primarily relevant in current_cpu == "mips*" contexts, where
8 # MIPS code is being compiled. But they can also be relevant in the
9 # other contexts when the code will change its behavior based on the
10 # cpu it wants to generate code for.
11 if (current_cpu == "mipsel" || v8_target_cpu == "mipsel") {
6 declare_args() { 12 declare_args() {
7 # MIPS arch variant. Possible values are: 13 # MIPS arch variant. Possible values are:
8 # "r1" 14 # "r1"
9 # "r2" 15 # "r2"
10 # "r6" 16 # "r6"
11 mips_arch_variant = "r1" 17 mips_arch_variant = "r1"
12 18
13 # MIPS DSP ASE revision. Possible values are: 19 # MIPS DSP ASE revision. Possible values are:
14 # 0: unavailable 20 # 0: unavailable
15 # 1: revision 1 21 # 1: revision 1
16 # 2: revision 2 22 # 2: revision 2
17 mips_dsp_rev = 0 23 mips_dsp_rev = 0
18 24
19 # MIPS floating-point ABI. Possible values are: 25 # MIPS floating-point ABI. Possible values are:
20 # "hard": sets the GCC -mhard-float option. 26 # "hard": sets the GCC -mhard-float option.
21 # "soft": sets the GCC -msoft-float option. 27 # "soft": sets the GCC -msoft-float option.
22 mips_float_abi = "hard" 28 mips_float_abi = "hard"
23 29
24 # MIPS32 floating-point register width. Possible values are: 30 # MIPS32 floating-point register width. Possible values are:
25 # "fp32": sets the GCC -mfp32 option. 31 # "fp32": sets the GCC -mfp32 option.
26 # "fp64": sets the GCC -mfp64 option. 32 # "fp64": sets the GCC -mfp64 option.
27 # "fpxx": sets the GCC -mfpxx option. 33 # "fpxx": sets the GCC -mfpxx option.
28 mips_fpu_mode = "fp32" 34 mips_fpu_mode = "fp32"
29 } 35 }
30 } else if (current_cpu == "mips64el" || target_cpu == "mips64el") { 36 } else if (current_cpu == "mips64el" || v8_target_cpu == "mips64el") {
31 # MIPS arch variant. Possible values are: 37 # MIPS arch variant. Possible values are:
32 # "r2" 38 # "r2"
33 # "r6" 39 # "r6"
34 if (current_os == "android" || target_os == "android") { 40 if (current_os == "android" || target_os == "android") {
35 declare_args() { 41 declare_args() {
36 mips_arch_variant = "r6" 42 mips_arch_variant = "r6"
37 } 43 }
38 } else { 44 } else {
39 declare_args() { 45 declare_args() {
40 mips_arch_variant = "r2" 46 mips_arch_variant = "r2"
41 } 47 }
42 } 48 }
43 } 49 }
OLDNEW
« no previous file with comments | « build/config/arm.gni ('k') | build/config/v8_target_cpu.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698