Chromium Code Reviews| 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 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 83 if (arm_use_neon) { | 83 if (arm_use_neon) { |
| 84 arm_fpu = "neon" | 84 arm_fpu = "neon" |
| 85 } else { | 85 } else { |
| 86 arm_fpu = "vfpv3-d16" | 86 arm_fpu = "vfpv3-d16" |
| 87 } | 87 } |
| 88 } | 88 } |
| 89 } else if (current_cpu == "arm64" || target_cpu == "arm64") { | 89 } else if (current_cpu == "arm64" || target_cpu == "arm64") { |
| 90 # arm64 supports only "hard". | 90 # arm64 supports only "hard". |
| 91 arm_float_abi = "hard" | 91 arm_float_abi = "hard" |
| 92 arm_use_neon = true | 92 arm_use_neon = true |
| 93 } else if (target_cpu == "x86") { | |
| 94 # We support a build configuration for fuzzing where we build for 32-bit x86, | |
| 95 # but tell v8 to generate 32-bit arm code. In this setup, some of the | |
| 96 # arm_ variables need to be set even though target_cpu is x86. | |
| 97 # (v8_target_arch is set to "arm" in that case, but that's defined in v8, | |
| 98 # and build/ can't depend on v8, so don't check for that.) | |
| 99 # The values for these variables should be the default values from the | |
| 100 # target_cpu == "arm" block above. | |
| 101 arm_version = 7 | |
| 102 arm_fpu = "neon" | |
| 103 if (current_os == "android" || target_os == "android") { | |
| 104 arm_float_abi = "softfp" | |
| 105 } else { | |
| 106 arm_float_abi = "hard" | |
| 107 } | |
| 93 } | 108 } |
|
jochen (gone - plz use gerrit)
2016/06/13 15:18:40
why not just replace the if (current_cpu == "arm"
Nico
2016/06/13 15:23:53
I'm guessing that the arm check is there so that t
| |
| OLD | NEW |