Skip to content

Commit

Permalink
Add top-level target for Windows/Android gen_snapshot (flutter#37134)
Browse files Browse the repository at this point in the history
  • Loading branch information
zanderso authored Oct 31, 2022
1 parent 96c0353 commit 1a8ba7c
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -251,3 +251,13 @@ if (is_fuchsia && enable_unittests) {
deps = [ "//flutter/shell/platform/fuchsia:tests" ]
}
}

# On Windows, when targeting Android, we only build gen_snapshot. This
# top-level target provides a convenient shorthand for the full path into the
# 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)" ]
}
}

0 comments on commit 1a8ba7c

Please sign in to comment.