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

Commit b474a50

Browse files
Remove dependencies on _product variants of libdart from the Fuchsia release mode build (#21668)
1 parent 57d58e6 commit b474a50

File tree

3 files changed

+9
-11
lines changed

3 files changed

+9
-11
lines changed

shell/platform/fuchsia/BUILD.gn

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,9 @@ import("//flutter/tools/fuchsia/dart.gni")
1010
import("//flutter/tools/fuchsia/fuchsia_host_bundle.gni")
1111

1212
product_suffix = ""
13-
is_product = false
1413

1514
if (flutter_runtime_mode == "release") {
1615
product_suffix = "product_"
17-
is_product = true
1816
}
1917

2018
fuchsia_host_bundle("flutter_binaries") {
@@ -35,7 +33,7 @@ fuchsia_host_bundle("dart_binaries") {
3533
name = "dart_binaries"
3634

3735
_gen_snapshot_to_use = gen_snapshot + "($host_toolchain)"
38-
if (is_product) {
36+
if (flutter_runtime_mode == "release") {
3937
_gen_snapshot_to_use = gen_snapshot_product + "($host_toolchain)"
4038
}
4139

shell/platform/fuchsia/dart_runner/BUILD.gn

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,8 @@ runner("dart_jit_product_runner_bin") {
9393
product = true
9494
extra_defines = [ "DART_PRODUCT" ]
9595
extra_deps = [
96-
"//third_party/dart/runtime:libdart_jit_product",
97-
"//third_party/dart/runtime/platform:libdart_platform_jit_product",
96+
"//third_party/dart/runtime:libdart_jit",
97+
"//third_party/dart/runtime/platform:libdart_platform_jit",
9898
]
9999
}
100100

@@ -121,8 +121,8 @@ runner("dart_aot_product_runner_bin") {
121121
]
122122
extra_deps = [
123123
"embedder:dart_aot_product_snapshot_cc",
124-
"//third_party/dart/runtime:libdart_precompiled_runtime_product",
125-
"//third_party/dart/runtime/platform:libdart_platform_precompiled_runtime_product",
124+
"//third_party/dart/runtime:libdart_precompiled_runtime",
125+
"//third_party/dart/runtime/platform:libdart_platform_precompiled_runtime",
126126
]
127127
}
128128

shell/platform/fuchsia/flutter/BUILD.gn

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -229,8 +229,8 @@ flutter_runner("jit_product") {
229229
product = true
230230

231231
extra_deps = [
232-
"//third_party/dart/runtime:libdart_jit_product",
233-
"//third_party/dart/runtime/platform:libdart_platform_jit_product",
232+
"//third_party/dart/runtime:libdart_jit",
233+
"//third_party/dart/runtime/platform:libdart_platform_jit",
234234
]
235235
}
236236

@@ -249,8 +249,8 @@ flutter_runner("aot_product") {
249249
product = true
250250

251251
extra_deps = [
252-
"//third_party/dart/runtime:libdart_precompiled_runtime_product",
253-
"//third_party/dart/runtime/platform:libdart_platform_precompiled_runtime_product",
252+
"//third_party/dart/runtime:libdart_precompiled_runtime",
253+
"//third_party/dart/runtime/platform:libdart_platform_precompiled_runtime",
254254
]
255255
}
256256

0 commit comments

Comments
 (0)