[build] Don't run orphaned action in default builds
A gn build with no specified targets builds all visible targets. The postmortem-metadata action is visible, but its output is only needed if v8_postmortem_support is enabled, hence we now guard the whole action by the flag. Depends on https://crrev.com/c/4064686 Bug: chromium:1394626 Change-Id: I8444021cfe253cedee5c1578c733a3ad973726db Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/4061865 Reviewed-by: Victor Gomes <victorgomes@chromium.org> Reviewed-by: Liviu Rau <liviurau@chromium.org> Commit-Queue: Michael Achenbach <machenbach@chromium.org> Cr-Commit-Position: refs/heads/main@{#84599}
This commit is contained in:
parent
f06b360249
commit
8606191c98
4
BUILD.gn
4
BUILD.gn
@ -1582,7 +1582,8 @@ if (is_android && enable_java_templates) {
|
||||
}
|
||||
}
|
||||
|
||||
action("postmortem-metadata") {
|
||||
if (v8_postmortem_support) {
|
||||
action("postmortem-metadata") {
|
||||
# Only targets in this file and the top-level visibility target can
|
||||
# depend on this.
|
||||
visibility = [
|
||||
@ -1669,6 +1670,7 @@ action("postmortem-metadata") {
|
||||
rebase_path(sources, root_build_dir)
|
||||
|
||||
deps = [ ":run_torque" ]
|
||||
}
|
||||
}
|
||||
|
||||
torque_files = [
|
||||
|
Loading…
Reference in New Issue
Block a user