Remove the syzygy optimization code.
BUG=651078 Review-Url: https://codereview.chromium.org/2420943002 Cr-Original-Commit-Position: refs/heads/master@{#425775} Cr-Mirrored-From: https://chromium.googlesource.com/chromium/src Cr-Mirrored-Commit: dc24dfdf83e70db531ca2dcb1d9a304415951400
This commit is contained in:
Родитель
84384c5ff3
Коммит
eb8eb7a953
|
@ -64,13 +64,6 @@ declare_args() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
declare_args() {
|
|
||||||
# Generate Syzygy optimized binaries. Syzygy optimize mode is a profile
|
|
||||||
# guided optimization that reorders code for better locality.
|
|
||||||
syzygy_optimize = is_win && target_cpu == "x86" && is_official_build &&
|
|
||||||
!is_clang && !is_win_fastlink && !is_syzyasan
|
|
||||||
}
|
|
||||||
|
|
||||||
declare_args() {
|
declare_args() {
|
||||||
# Whether to use the gold linker from binutils instead of lld or bfd.
|
# Whether to use the gold linker from binutils instead of lld or bfd.
|
||||||
use_gold = !use_lld && !(is_chromecast && is_linux &&
|
use_gold = !use_lld && !(is_chromecast && is_linux &&
|
||||||
|
|
|
@ -7,57 +7,6 @@ assert(is_win)
|
||||||
# Where the output binaries will be placed.
|
# Where the output binaries will be placed.
|
||||||
syzygy_dest_dir = "$root_out_dir/syzygy"
|
syzygy_dest_dir = "$root_out_dir/syzygy"
|
||||||
|
|
||||||
# Generates a Syzygy optimize target.
|
|
||||||
#
|
|
||||||
# binary_name (required)
|
|
||||||
# Name of the binary to be instrumented, with no extension or path. This
|
|
||||||
# binary_name is assumed to be in the output directory and must be
|
|
||||||
# generated by a dependency of this target.
|
|
||||||
#
|
|
||||||
# deps (required)
|
|
||||||
# Normal meaning.
|
|
||||||
#
|
|
||||||
# data_deps
|
|
||||||
# Normal meaning.
|
|
||||||
template("syzygy_optimize") {
|
|
||||||
action(target_name) {
|
|
||||||
if (defined(invoker.visibility)) {
|
|
||||||
visibility = invoker.visibility
|
|
||||||
}
|
|
||||||
script = "//build/win/syzygy/reorder.py"
|
|
||||||
|
|
||||||
binary_name = invoker.binary_name
|
|
||||||
input_dll = "$root_out_dir/$binary_name"
|
|
||||||
input_pdb = "$root_out_dir/$binary_name.pdb"
|
|
||||||
|
|
||||||
inputs = [
|
|
||||||
input_dll,
|
|
||||||
#input_pdb,
|
|
||||||
]
|
|
||||||
|
|
||||||
outputs = [
|
|
||||||
"$syzygy_dest_dir/$binary_name",
|
|
||||||
"$syzygy_dest_dir/$binary_name.pdb",
|
|
||||||
]
|
|
||||||
|
|
||||||
args = [
|
|
||||||
"--input_executable",
|
|
||||||
rebase_path(input_dll, root_build_dir),
|
|
||||||
"--input_symbol",
|
|
||||||
rebase_path(input_pdb, root_build_dir),
|
|
||||||
"--destination_dir",
|
|
||||||
rebase_path(syzygy_dest_dir, root_build_dir),
|
|
||||||
]
|
|
||||||
|
|
||||||
forward_variables_from(invoker,
|
|
||||||
[
|
|
||||||
"deps",
|
|
||||||
"data_deps",
|
|
||||||
"public_deps",
|
|
||||||
])
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
# Instruments a binary with SyzyAsan.
|
# Instruments a binary with SyzyAsan.
|
||||||
#
|
#
|
||||||
# binary_name (required)
|
# binary_name (required)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче