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

Commit 010218e

Browse files
committed
Copy Windows gen_snapshot to a standard location
1 parent 287a3ab commit 010218e

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

BUILD.gn

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,13 @@ 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 =
261+
"//third_party/dart/runtime/bin:gen_snapshot($host_toolchain)"
262+
copy("gen_snapshot") {
263+
deps = [ _gen_snapshot_target ]
264+
265+
gen_snapshot_out_dir = get_label_info(_gen_snapshot_target, "root_out_dir")
266+
sources = [ "$gen_snapshot_out_dir/gen_snapshot.exe" ]
267+
outputs = [ "$root_build_dir/gen_snapshot/gen_snapshot.exe" ]
262268
}
263269
}

0 commit comments

Comments
 (0)