Skip to content

Commit

Permalink
[fuchsia] Look for .packages under the proper directory. (flutter#4909)
Browse files Browse the repository at this point in the history
  • Loading branch information
pylaligand authored Mar 31, 2018
1 parent 4a34769 commit f6905f5
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/snapshot/BUILD.gn
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,10 @@ action("generate_snapshot_bin") {
}

if (is_fuchsia) {
inputs += zircon_sdk_ext_files + mozart_dart_sdk_ext_files
package_gen_dir = get_label_info(":bogus($dart_toolchain)",
"target_gen_dir")
package_file = "$package_gen_dir/generate_package_map.packages"
inputs += zircon_sdk_ext_files + mozart_dart_sdk_ext_files + [package_file]
zircon_path = rebase_path(zircon_sdk_ext_lib)
fuchsia_path = rebase_path(fuchsia_sdk_ext_lib)
mozart_internal_path = rebase_path(mozart_dart_sdk_ext_lib)
Expand All @@ -137,7 +140,7 @@ action("generate_snapshot_bin") {
"--url_mapping=dart:fuchsia,$fuchsia_path",
"--url_mapping=dart:mozart.internal,$mozart_internal_path",
"--packages",
rebase_path("$target_gen_dir/generate_package_map.packages"),
rebase_path(package_file),
"--load_compilation_trace",
rebase_path("fuchsia_compilation_trace.txt"),
]
Expand Down

0 comments on commit f6905f5

Please sign in to comment.