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

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

Issue 2116183002: Land chromium-side work to clean up handling of v8_target_cpu in the GN build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: for review Created 4 years, 5 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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/v8_target_cpu.gni")
6
7 # These are primarily relevant in current_cpu == "arm" contexts, where 5 # These are primarily relevant in current_cpu == "arm" contexts, where
8 # ARM code is being compiled. But they can also be relevant in the 6 # ARM 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 7 # other contexts when the code will change its behavior based on the
10 # cpu it wants to generate code for. 8 # cpu it wants to generate code for.
11 if (current_cpu == "arm" || v8_target_cpu == "arm") { 9 if (current_cpu == "arm" || v8_current_cpu == "arm") {
12 declare_args() { 10 declare_args() {
13 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM 11 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM
14 # platforms. 12 # platforms.
15 arm_version = 7 13 arm_version = 7
16 14
17 # The ARM floating point mode. This is either the string "hard", "soft", or 15 # The ARM floating point mode. This is either the string "hard", "soft", or
18 # "softfp". An empty string means to use the default one for the 16 # "softfp". An empty string means to use the default one for the
19 # arm_version. 17 # arm_version.
20 arm_float_abi = "" 18 arm_float_abi = ""
21 19
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
80 arm_float_abi = "hard" 78 arm_float_abi = "hard"
81 } 79 }
82 } 80 }
83 81
84 if (arm_use_neon) { 82 if (arm_use_neon) {
85 arm_fpu = "neon" 83 arm_fpu = "neon"
86 } else { 84 } else {
87 arm_fpu = "vfpv3-d16" 85 arm_fpu = "vfpv3-d16"
88 } 86 }
89 } 87 }
90 } else if (current_cpu == "arm64" || v8_target_cpu == "arm64") { 88 } else if (current_cpu == "arm64" || v8_current_cpu == "arm64") {
91 # arm64 supports only "hard". 89 # arm64 supports only "hard".
92 arm_float_abi = "hard" 90 arm_float_abi = "hard"
93 arm_use_neon = true 91 arm_use_neon = true
94 } 92 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698