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

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

Issue 1810423002: [iOS/GN] Fix compilation of ios_chrome_unittests with gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@resources
Patch Set: Fix link error Created 4 years, 8 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.gn ('k') | build/config/mac/BUILD.gn » ('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 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 if (current_cpu == "arm") { 5 if (current_cpu == "arm") {
6 declare_args() { 6 declare_args() {
7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM 7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM
8 # platforms. 8 # platforms.
9 arm_version = 7 9 arm_version = 7
10 10
11 # The ARM floating point mode. This is either the string "hard", "soft", or 11 # The ARM floating point mode. This is either the string "hard", "soft", or
12 # "softfp". An empty string means to use the default one for the 12 # "softfp". An empty string means to use the default one for the
13 # arm_version. 13 # arm_version.
14 arm_float_abi = "" 14 arm_float_abi = ""
15 15
16 # The ARM variant-specific tuning mode. This will be a string like "armv6" 16 # The ARM variant-specific tuning mode. This will be a string like "armv6"
17 # or "cortex-a15". An empty string means to use the default for the 17 # or "cortex-a15". An empty string means to use the default for the
18 # arm_version. 18 # arm_version.
19 arm_tune = "" 19 arm_tune = ""
20 20
21 # Whether to use the neon FPU instruction set or not. 21 # Whether to use the neon FPU instruction set or not.
22 arm_use_neon = true 22 arm_use_neon = true
23 23
24 # Whether to enable optional NEON code paths. 24 # Whether to enable optional NEON code paths.
25 arm_optionally_use_neon = false 25 arm_optionally_use_neon = false
26
27 if (is_ios) {
28 arm_use_neon = false
29 arm_optionally_use_neon = false
30 }
31 } 26 }
32 27
33 assert(arm_float_abi == "" || arm_float_abi == "hard" || 28 assert(arm_float_abi == "" || arm_float_abi == "hard" ||
34 arm_float_abi == "soft" || arm_float_abi == "softfp") 29 arm_float_abi == "soft" || arm_float_abi == "softfp")
35 30
36 if (arm_version == 6) { 31 if (arm_version == 6) {
37 arm_arch = "armv6" 32 arm_arch = "armv6"
38 if (arm_tune != "") { 33 if (arm_tune != "") {
39 arm_tune = "" 34 arm_tune = ""
40 } 35 }
(...skipping 24 matching lines...) Expand all
65 if (arm_use_neon) { 60 if (arm_use_neon) {
66 arm_fpu = "neon" 61 arm_fpu = "neon"
67 } else { 62 } else {
68 arm_fpu = "vfpv3-d16" 63 arm_fpu = "vfpv3-d16"
69 } 64 }
70 } 65 }
71 } else if (current_cpu == "arm64") { 66 } else if (current_cpu == "arm64") {
72 # arm64 supports only "hard". 67 # arm64 supports only "hard".
73 arm_float_abi = "hard" 68 arm_float_abi = "hard"
74 } 69 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | build/config/mac/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698