| 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" || current_cpu == "arm64") { | 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 if (current_cpu == "arm") { | 9 if (current_cpu == "arm") { |
| 10 arm_version = 7 | 10 arm_version = 7 |
| 11 } else if(current_cpu == "arm64") { | 11 } else if (current_cpu == "arm64") { |
| 12 arm_version = 8 | 12 arm_version = 8 |
| 13 } else { | 13 } else { |
| 14 assert(false, "Unconfigured arm version") | 14 assert(false, "Unconfigured arm version") |
| 15 } | 15 } |
| 16 | 16 |
| 17 # The ARM floating point mode. This is either the string "hard", "soft", or | 17 # 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 | 18 # "softfp". An empty string means to use the default one for the |
| 19 # arm_version. | 19 # arm_version. |
| 20 arm_float_abi = "" | 20 arm_float_abi = "" |
| 21 | 21 |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 69 | 69 |
| 70 arm_use_thumb = true | 70 arm_use_thumb = true |
| 71 | 71 |
| 72 if (arm_use_neon) { | 72 if (arm_use_neon) { |
| 73 arm_fpu = "neon" | 73 arm_fpu = "neon" |
| 74 } else { | 74 } else { |
| 75 arm_fpu = "vfpv3-d16" | 75 arm_fpu = "vfpv3-d16" |
| 76 } | 76 } |
| 77 } | 77 } |
| 78 } | 78 } |
| OLD | NEW |