Update arm.gni

This commit is contained in:
Alexander David Frick 2022-07-15 18:47:50 -05:00 committed by GitHub
parent 8a57c84e25
commit de4e546283
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -2,6 +2,7 @@
# Use of this source code is governed by a BSD-style license that can be # Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file. # found in the LICENSE file.
import("//build/config/chromeos/ui_mode.gni")
import("//build/config/v8_target_cpu.gni") import("//build/config/v8_target_cpu.gni")
# These are primarily relevant in current_cpu == "arm" contexts, where # These are primarily relevant in current_cpu == "arm" contexts, where
@ -37,6 +38,12 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# has increased code density. # has increased code density.
arm_use_thumb = true arm_use_thumb = true
} }
# For lacros build, we use ARM v8 by default.
if (is_chromeos_lacros && arm_arch == "") {
arm_version = 8
arm_arch = "armv8-a+crc"
}
if (current_os == "android" || target_os == "android") { if (current_os == "android" || target_os == "android") {
arm_float_abi = "softfp" arm_float_abi = "softfp"