update other build.gns

This commit is contained in:
Alexander Frick 2023-12-29 00:33:22 -06:00
parent 4936957ca8
commit e92cf9f331
10 changed files with 46 additions and 15 deletions

View file

@ -41,6 +41,8 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# For lacros build, we use ARM v8 by default.
if (is_chromeos_lacros && arm_arch == "") {
# TODO(crbug.com/1467681) Enable i8mm and dotprod instructions for ffmpeg
# if ever we update to a version of arm that supports these instructions.
arm_version = 8
arm_arch = "armv8-a+crc"
}

View file

@ -41,6 +41,8 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# For lacros build, we use ARM v8 by default.
if (is_chromeos_lacros && arm_arch == "") {
# TODO(crbug.com/1467681) Enable i8mm and dotprod instructions for ffmpeg
# if ever we update to a version of arm that supports these instructions.
arm_version = 8
arm_arch = "armv8-a+crc"
}

View file

@ -17,7 +17,7 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# The ARM architecture. This will be a string like "armv6" or "armv7-a".
# An empty string means to use the default for the arm_version.
arm_arch = "armv8.5-a"
arm_arch = "armv8.3-a"
# The ARM floating point hardware. This will be a string like "neon" or
# "vfpv3". An empty string means to use the default for the arm_version.
@ -26,7 +26,7 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# 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 = "generic-armv8.5-a"
arm_tune = "generic-armv8.3-a"
# Whether to use the neon FPU instruction set or not.
arm_use_neon = "true"
@ -41,6 +41,8 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# For lacros build, we use ARM v8 by default.
if (is_chromeos_lacros && arm_arch == "") {
# TODO(crbug.com/1467681) Enable i8mm and dotprod instructions for ffmpeg
# if ever we update to a version of arm that supports these instructions.
arm_version = 8
arm_arch = "armv8-a+crc"
}
@ -106,10 +108,10 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
}
} else if (arm_version == 8) {
if (arm_arch == "") {
arm_arch = "armv8.5-a"
arm_arch = "armv8.3-a"
}
if (arm_tune == "") {
arm_tune = "generic-armv8.5-a"
arm_tune = "generic-armv8.3-a"
}
if (arm_float_abi == "") {
@ -141,12 +143,12 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# The ARM64 architecture. This will be a string like "armv8-a" or "armv8.5-a.
# An empty string means to use the default for the arm_version.
arm_arch = "armv8.5-a"
arm_arch = "armv8.3-a"
# 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 = "generic-armv8.5-a"
arm_tune = "generic-armv8.3-a"
# The ARM64 floating point hardware. This will be a string like "neon" or
# "vfpv3-d16". An empty string means to use the default for the arm_version.
@ -173,9 +175,9 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# Initial values from upstream.
arm_version = 8
arm_float_abi = "hard"
arm_arch = "armv8.5-a"
arm_arch = "armv8.3-a"
arm_fpu = "neon"
arm_tune = "generic-armv8.5-a"
arm_tune = "generic-armv8.3-a"
arm_use_neon = true
arm_optionally_use_neon = false
arm_use_thumb = true

View file

@ -44,6 +44,8 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# For lacros build, we use ARM v8 by default.
if (is_chromeos_lacros && arm_arch == "") {
# TODO(crbug.com/1467681) Enable i8mm and dotprod instructions for ffmpeg
# if ever we update to a version of arm that supports these instructions.
arm_version = 8
arm_arch = "armv8-a+crc"
}

View file

@ -41,6 +41,8 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# For lacros build, we use ARM v8 by default.
if (is_chromeos_lacros && arm_arch == "") {
# TODO(crbug.com/1467681) Enable i8mm and dotprod instructions for ffmpeg
# if ever we update to a version of arm that supports these instructions.
arm_version = 8
arm_arch = "armv8-a+crc"
}

View file

@ -193,7 +193,13 @@ config("compiler") {
# block maps.
# This flag requires lld-link.exe or link.exe from VS 2022 or later to create
# the PDBs, and tools from circa 22H2 or later to consume the PDBs.
ldflags += [ "/pdbpagesize:8192" ]
# Debug component builds can generate PDBs that exceed 8 GiB, so use an
# even larger page size, allowing up to 16 GiB PDBs.
if (is_debug && !is_component_build) {
ldflags += [ "/pdbpagesize:16384" ]
} else {
ldflags += [ "/pdbpagesize:8192" ]
}
if (!is_debug && !is_component_build) {
# Enable standard linker optimizations like GC (/OPT:REF) and ICF in static

View file

@ -184,7 +184,13 @@ config("compiler") {
# block maps.
# This flag requires lld-link.exe or link.exe from VS 2022 or later to create
# the PDBs, and tools from circa 22H2 or later to consume the PDBs.
ldflags += [ "/pdbpagesize:8192" ]
# Debug component builds can generate PDBs that exceed 8 GiB, so use an
# even larger page size, allowing up to 16 GiB PDBs.
if (is_debug && !is_component_build) {
ldflags += [ "/pdbpagesize:16384" ]
} else {
ldflags += [ "/pdbpagesize:8192" ]
}
if (!is_debug && !is_component_build) {
# Enable standard linker optimizations like GC (/OPT:REF) and ICF in static

View file

@ -41,6 +41,8 @@ if (current_cpu == "arm" || v8_current_cpu == "arm") {
# For lacros build, we use ARM v8 by default.
if (is_chromeos_lacros && arm_arch == "") {
# TODO(crbug.com/1467681) Enable i8mm and dotprod instructions for ffmpeg
# if ever we update to a version of arm that supports these instructions.
arm_version = 8
arm_arch = "armv8-a+crc"
}

View file

@ -8,6 +8,7 @@ import("//build/config/mac/mac_sdk.gni")
import("//build/config/sysroot.gni")
import("//build/toolchain/goma.gni")
import("//build/toolchain/rbe.gni")
import("//build/toolchain/siso.gni")
# This is included by reference in the //build/config/compiler config that
# is applied to all targets. It is here to separate out the logic.
@ -54,8 +55,8 @@ config("compiler") {
}
if (current_cpu == "x64") {
cflags += [ "-O3", "-maes", "-march=x86-64-v3", "-ffp-contract=fast", "-mf16c", "-mfma", ]
ldflags += [ "-Wl,-O3", "-maes", "-Wl,-mllvm,-march=x86-64-v3", "-Wl,-mllvm,-fp-contract=fast", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=4", ]
cflags += [ "-O3", "-march=x86-64-v3", "-ffp-contract=fast", ]
ldflags += [ "-Wl,-O3", "-Wl,-mllvm,-march=x86-64-v3", "-Wl,-mllvm,-fp-contract=fast", "-Wl,-mllvm,-import-instr-limit=30", "-Wl,-mllvm,-import-hot-multiplier=15", "-Wl,-mllvm,-import-cold-multiplier=2", ]
}
if (save_unstripped_output) {
@ -120,8 +121,8 @@ config("mac_dynamic_flags") {
#
# The symbolic link for $mac_sdk_path is set up by
# //build/config/apple/sdk_info.py in //build/config/mac/mac_sdk.gni.
if (use_system_xcode && (use_goma || use_remoteexec) && target_os == "mac" &&
current_toolchain == default_toolchain) {
if (use_system_xcode && (use_goma || use_remoteexec || use_siso) &&
target_os == "mac" && current_toolchain == default_toolchain) {
action("sdk_inputs") {
script = "//build/noop.py"
outputs = [

View file

@ -188,7 +188,13 @@ config("compiler") {
# block maps.
# This flag requires lld-link.exe or link.exe from VS 2022 or later to create
# the PDBs, and tools from circa 22H2 or later to consume the PDBs.
ldflags += [ "/pdbpagesize:8192" ]
# Debug component builds can generate PDBs that exceed 8 GiB, so use an
# even larger page size, allowing up to 16 GiB PDBs.
if (is_debug && !is_component_build) {
ldflags += [ "/pdbpagesize:16384" ]
} else {
ldflags += [ "/pdbpagesize:8192" ]
}
if (!is_debug && !is_component_build) {
# Enable standard linker optimizations like GC (/OPT:REF) and ICF in static