Ensure gen_snapshot for the target is built when needed (flutter/engine#23694)

This commit is contained in:
Zachary Anderson
2021-01-14 14:29:02 -08:00
committed by GitHub
parent 496768187d
commit 9b8217feaa
2 changed files with 6 additions and 0 deletions

View File

@@ -62,6 +62,11 @@ group("flutter") {
public_deps += [
"//flutter/flutter_frontend_server:frontend_server",
"//third_party/dart:create_sdk",
# This must be listed explicitly for desktop cross-builds since
# //flutter/lib/snapshot:generate_snapshot_bin will only build
# gen_snapshot for the host and not the target.
"//third_party/dart/runtime/bin:gen_snapshot",
]
if (full_dart_sdk) {

View File

@@ -201,6 +201,7 @@ action("create_arm_gen_snapshot") {
output_dir = "$root_out_dir/clang_x64"
script = "//flutter/sky/tools/create_macos_gen_snapshots.py"
visibility = [ ":*" ]
deps = [ "//third_party/dart/runtime/bin:gen_snapshot" ]
args = [
"--dst",
rebase_path(output_dir),