From 010218e0e1669b09b20272ce91fc5eca96efe3ee Mon Sep 17 00:00:00 2001 From: Zachary Anderson Date: Fri, 4 Nov 2022 08:43:10 -0700 Subject: [PATCH] Copy Windows gen_snapshot to a standard location --- BUILD.gn | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/BUILD.gn b/BUILD.gn index 60615f520c68c..acd070c7f87bd 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -257,7 +257,13 @@ if (is_fuchsia && enable_unittests) { # Dart tree, and is less ambiguous than specifying the binary to build since # we can specify the toolchain to use, too. if (host_os == "win") { - group("gen_snapshot") { - deps = [ "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)" ] + _gen_snapshot_target = + "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)" + copy("gen_snapshot") { + deps = [ _gen_snapshot_target ] + + gen_snapshot_out_dir = get_label_info(_gen_snapshot_target, "root_out_dir") + sources = [ "$gen_snapshot_out_dir/gen_snapshot.exe" ] + outputs = [ "$root_build_dir/gen_snapshot/gen_snapshot.exe" ] } }