diff --git a/BUILD.gn b/BUILD.gn index 192675c280bbd7bba02144e916d059bbc2ab45d9..aed14fb910e2371fe5353721c144924e99989790 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -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) { diff --git a/lib/snapshot/BUILD.gn b/lib/snapshot/BUILD.gn index dc281ea7811d80c6b60c839e66d967ff199197e4..fb6d349f2aee0664ed210b80b359f88c8e387db8 100644 --- a/lib/snapshot/BUILD.gn +++ b/lib/snapshot/BUILD.gn @@ -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),