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

Commit f6905f5

Browse files
authored
[fuchsia] Look for .packages under the proper directory. (#4909)
1 parent 4a34769 commit f6905f5

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

lib/snapshot/BUILD.gn

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,10 @@ action("generate_snapshot_bin") {
128128
}
129129

130130
if (is_fuchsia) {
131-
inputs += zircon_sdk_ext_files + mozart_dart_sdk_ext_files
131+
package_gen_dir = get_label_info(":bogus($dart_toolchain)",
132+
"target_gen_dir")
133+
package_file = "$package_gen_dir/generate_package_map.packages"
134+
inputs += zircon_sdk_ext_files + mozart_dart_sdk_ext_files + [package_file]
132135
zircon_path = rebase_path(zircon_sdk_ext_lib)
133136
fuchsia_path = rebase_path(fuchsia_sdk_ext_lib)
134137
mozart_internal_path = rebase_path(mozart_dart_sdk_ext_lib)
@@ -137,7 +140,7 @@ action("generate_snapshot_bin") {
137140
"--url_mapping=dart:fuchsia,$fuchsia_path",
138141
"--url_mapping=dart:mozart.internal,$mozart_internal_path",
139142
"--packages",
140-
rebase_path("$target_gen_dir/generate_package_map.packages"),
143+
rebase_path(package_file),
141144
"--load_compilation_trace",
142145
rebase_path("fuchsia_compilation_trace.txt"),
143146
]

0 commit comments

Comments
 (0)