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

Commit b06a2ca

Browse files
author
Kaushik Iska
committed
Do not generate kernel platform files on topaz tree
1 parent 80b8ed8 commit b06a2ca

1 file changed

Lines changed: 13 additions & 6 deletions

File tree

lib/snapshot/BUILD.gn

Lines changed: 13 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ compiled_action("generate_snapshot_bin") {
2323
tool = "//third_party/dart/runtime/bin:gen_snapshot"
2424

2525
if (is_fuchsia || is_fuchsia_host) {
26-
platform_kernel =
27-
"$root_out_dir/engine_flutter_runner_patched_sdk/platform_strong.dill"
26+
platform_kernel = "//prebuilt/gallium/prod/platform_strong.dill"
2827
} else {
2928
platform_kernel = "$root_out_dir/flutter_patched_sdk/platform_strong.dill"
3029
}
@@ -79,6 +78,11 @@ template("bin_to_assembly") {
7978
deps = invoker.deps
8079
script = "//third_party/dart/runtime/tools/bin_to_assembly.py"
8180
output = invoker.input + ".S"
81+
82+
if (is_fuchsia || is_fuchsia_host) {
83+
output = "$root_out_dir/flutter_runner_patched_sdk/$output"
84+
}
85+
8286
args = [
8387
"--input",
8488
rebase_path(invoker.input),
@@ -122,6 +126,11 @@ template("bin_to_coff") {
122126
deps = invoker.deps
123127
script = "//third_party/dart/runtime/tools/bin_to_coff.py"
124128
output = invoker.input + ".o"
129+
130+
if ((is_fuchsia || is_fuchsia_host) && !using_fuchsia_sdk) {
131+
output = "$root_out_dir/flutter_runner_patched_sdk/$output"
132+
}
133+
125134
args = [
126135
"--input",
127136
rebase_path(invoker.input),
@@ -209,7 +218,7 @@ bin_to_linkable("platform_strong_dill_linkable") {
209218
":kernel_platform_files",
210219
]
211220
if (is_fuchsia || is_fuchsia_host) {
212-
input = "$root_out_dir/engine_flutter_runner_patched_sdk/platform_strong.dill"
221+
input = "//prebuilt/gallium/prod/platform_strong.dill"
213222
} else {
214223
input = "$root_out_dir/flutter_patched_sdk/platform_strong.dill"
215224
}
@@ -275,9 +284,7 @@ compile_platform("strong_platform") {
275284
# Fuchsia's snapshot requires a different platform with extra dart: libraries.
276285
if (is_fuchsia || is_fuchsia_host) {
277286
group("kernel_platform_files") {
278-
public_deps = [
279-
"$flutter_root/shell/platform/fuchsia/flutter/kernel:kernel_platform_files",
280-
]
287+
# We use pre-builts for the strong platform file.
281288
}
282289
} else {
283290
group("kernel_platform_files") {

0 commit comments

Comments
 (0)