Skip to content

Commit da46f98

Browse files
bkonyiCommit Bot
authored and
Commit Bot
committed
[ GN ] Fix Flutter Golem build
is_product is not defined in the Flutter engine build, causing the build to fail. Change-Id: I63381b676c6c5fb7c7bf4105e6c2cc17f4f63675 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/226480 Reviewed-by: Ryan Macnak <[email protected]> Commit-Queue: Ben Konyi <[email protected]>
1 parent 506dd07 commit da46f98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

utils/application_snapshot.gni

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,7 @@ template("_application_snapshot") {
112112
]
113113

114114
script = gen_kernel_kernel
115+
is_product_flag = dart_runtime_mode == "release"
115116

116117
args = [
117118
"--packages=" + rebase_path(dot_packages),
@@ -128,7 +129,7 @@ template("_application_snapshot") {
128129
# (Instead of ensuring every user of the "application_snapshot" /
129130
# "kernel_snapshot" passes this if needed, we always pass it)
130131
"-Dsdk_hash=$sdk_hash",
131-
"-Ddart.vm.product=$is_product",
132+
"-Ddart.vm.product=$is_product_flag",
132133
]
133134
args += [ rebase_path(main_dart) ]
134135
}

0 commit comments

Comments
 (0)