Ensure gen_snapshot for the target is built when needed (flutter/engine#23694)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user