| 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 if (target_cpu == "arm") { | 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 |
| 7 # host toolchain context when target_cpu == "arm", where a host-side |
| 8 # build tool being built will change its behavior depending on the |
| 9 # details of the target configuration. |
| 10 if (target_cpu == "arm" || current_cpu == "arm") { |
| 6 declare_args() { | 11 declare_args() { |
| 7 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM | 12 # Version of the ARM processor when compiling on ARM. Ignored on non-ARM |
| 8 # platforms. | 13 # platforms. |
| 9 arm_version = 7 | 14 arm_version = 7 |
| 10 | 15 |
| 11 # The ARM floating point mode. This is either the string "hard", "soft", or | 16 # 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 | 17 # "softfp". An empty string means to use the default one for the |
| 13 # arm_version. | 18 # arm_version. |
| 14 arm_float_abi = "" | 19 arm_float_abi = "" |
| 15 | 20 |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 60 if (arm_use_neon) { | 65 if (arm_use_neon) { |
| 61 arm_fpu = "neon" | 66 arm_fpu = "neon" |
| 62 } else { | 67 } else { |
| 63 arm_fpu = "vfpv3-d16" | 68 arm_fpu = "vfpv3-d16" |
| 64 } | 69 } |
| 65 } | 70 } |
| 66 } else if (current_cpu == "arm64") { | 71 } else if (current_cpu == "arm64") { |
| 67 # arm64 supports only "hard". | 72 # arm64 supports only "hard". |
| 68 arm_float_abi = "hard" | 73 arm_float_abi = "hard" |
| 69 } | 74 } |
| OLD | NEW |