Files
sdk/build/config/arm.gni
Ryan Macnak 8a16c74eb6 Update zlib to 3008c4b3a06bd65392c31db8846000a21e3d03c5.
Change-Id: I57374044d7367c1d1f8950f7c3b49b99db335e2a
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/484720
Reviewed-by: Alexander Aprelev <aam@google.com>
Commit-Queue: Ryan Macnak <rmacnak@google.com>
2026-03-03 14:57:00 -08:00

78 lines
2.0 KiB
Plaintext

# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
if (current_cpu == "arm" || current_cpu == "arm64") {
declare_args() {
# Version of the ARM processor when compiling on ARM. Ignored on non-ARM
# platforms.
if (current_cpu == "arm") {
arm_version = 7
} else if (current_cpu == "arm64") {
arm_version = 8
} else {
assert(false, "Unconfigured arm version")
}
# The ARM floating point mode. This is either the string "hard", "soft", or
# "softfp". An empty string means to use the default one for the
# arm_version.
arm_float_abi = ""
# The ARM variant-specific tuning mode. This will be a string like "armv6"
# or "cortex-a15". An empty string means to use the default for the
# arm_version.
arm_tune = ""
# Whether to use the neon FPU instruction set or not.
arm_use_neon = true
# Whether to enable optional NEON code paths.
arm_optionally_use_neon = false
if (is_ios) {
arm_use_neon = false
arm_optionally_use_neon = false
}
}
assert(arm_float_abi == "" || arm_float_abi == "hard" ||
arm_float_abi == "soft" || arm_float_abi == "softfp")
if (arm_version == 6) {
arm_arch = "armv6"
if (arm_tune != "") {
arm_tune = ""
}
if (arm_float_abi == "") {
arm_float_abi = "softfp"
}
arm_fpu = "vfp"
# Thumb is a reduced instruction set available on some ARM processors that
# has increased code density.
arm_use_thumb = false
} else if (arm_version == 7) {
arm_arch = "armv7-a"
if (arm_tune == "") {
arm_tune = "generic-armv7-a"
}
if (arm_float_abi == "") {
arm_float_abi = "softfp"
}
arm_use_thumb = true
if (arm_use_neon) {
arm_fpu = "neon"
} else {
arm_fpu = "vfpv3-d16"
}
}
}
if (current_cpu == "arm64") {
arm_control_flow_integrity = "none"
}