Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 40c3175

Browse files
committed
Copy Windows gen_snapshot to a standard location
1 parent 287a3ab commit 40c3175

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

BUILD.gn

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,12 @@ if (is_fuchsia && enable_unittests) {
257257
# Dart tree, and is less ambiguous than specifying the binary to build since
258258
# we can specify the toolchain to use, too.
259259
if (host_os == "win") {
260-
group("gen_snapshot") {
261-
deps = [ "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)" ]
260+
_gen_snapshot_target = "//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)"
261+
copy("gen_snapshot") {
262+
deps = [ _gen_snapshot_target ]
263+
264+
gen_snapshot_out_dir = get_label_info(_gen_snapshot_target, "root_out_dir")
265+
sources = [ "$gen_snapshot_out_dir/gen_snapshot.exe" ]
266+
outputs = [ "$root_build_dir/gen_snapshot/gen_snapshot.exe" ]
262267
}
263268
}

0 commit comments

Comments
 (0)