| 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 (current_cpu == "arm") { | 5 if (current_cpu == "arm" || current_cpu == "arm64") { |
| 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 if (current_cpu == "arm64") { |
| 10 arm_version = 8 |
| 11 } else { |
| 12 arm_version = 7 |
| 13 } |
| 10 | 14 |
| 11 # 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 |
| 12 # "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 |
| 13 # arm_version. | 17 # arm_version. |
| 14 arm_float_abi = "" | 18 arm_float_abi = "" |
| 15 | 19 |
| 16 # The ARM variant-specific tuning mode. This will be a string like "armv6" | 20 # 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 | 21 # or "cortex-a15". An empty string means to use the default for the |
| 18 # arm_version. | 22 # arm_version. |
| 19 arm_tune = "" | 23 arm_tune = "" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 63 | 67 |
| 64 arm_use_thumb = true | 68 arm_use_thumb = true |
| 65 | 69 |
| 66 if (arm_use_neon) { | 70 if (arm_use_neon) { |
| 67 arm_fpu = "neon" | 71 arm_fpu = "neon" |
| 68 } else { | 72 } else { |
| 69 arm_fpu = "vfpv3-d16" | 73 arm_fpu = "vfpv3-d16" |
| 70 } | 74 } |
| 71 } | 75 } |
| 72 } | 76 } |
| OLD | NEW |