OLD | NEW |
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 # These are primarily relevant in current_cpu == "arm" contexts, where | 5 # These are primarily relevant in current_cpu == "arm" contexts, where |
6 # 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 |
7 # host toolchain context when target_cpu == "arm", where a host-side | 7 # host toolchain context when target_cpu == "arm", where a host-side |
8 # build tool being built will change its behavior depending on the | 8 # build tool being built will change its behavior depending on the |
9 # details of the target configuration. | 9 # details of the target configuration. |
10 if (target_cpu == "arm" || current_cpu == "arm") { | 10 if (target_cpu == "arm" || current_cpu == "arm") { |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 } | 61 } |
62 | 62 |
63 arm_use_thumb = true | 63 arm_use_thumb = true |
64 | 64 |
65 if (arm_use_neon) { | 65 if (arm_use_neon) { |
66 arm_fpu = "neon" | 66 arm_fpu = "neon" |
67 } else { | 67 } else { |
68 arm_fpu = "vfpv3-d16" | 68 arm_fpu = "vfpv3-d16" |
69 } | 69 } |
| 70 } else if (arm_version == 8) { |
| 71 arm_arch = "armv8-a" |
| 72 if (arm_tune == "") { |
| 73 arm_tune = "generic-armv8-a" |
| 74 } |
| 75 |
| 76 if (arm_float_abi == "") { |
| 77 if (is_android) { |
| 78 arm_float_abi = "softfp" |
| 79 } else { |
| 80 arm_float_abi = "hard" |
| 81 } |
| 82 } |
| 83 |
| 84 arm_use_thumb = true |
| 85 |
| 86 if (arm_use_neon) { |
| 87 arm_fpu = "neon" |
| 88 } else { |
| 89 arm_fpu = "vfpv3-d16" |
| 90 } |
70 } | 91 } |
71 } else if (current_cpu == "arm64") { | 92 } else if (current_cpu == "arm64") { |
72 # arm64 supports only "hard". | 93 # arm64 supports only "hard". |
73 arm_float_abi = "hard" | 94 arm_float_abi = "hard" |
74 } | 95 } |
OLD | NEW |