mirror of
https://github.com/dart-lang/sdk
synced 2024-09-05 00:13:50 +00:00
[ 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 <rmacnak@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
parent
506dd07716
commit
da46f98a05
|
@ -112,6 +112,7 @@ template("_application_snapshot") {
|
|||
]
|
||||
|
||||
script = gen_kernel_kernel
|
||||
is_product_flag = dart_runtime_mode == "release"
|
||||
|
||||
args = [
|
||||
"--packages=" + rebase_path(dot_packages),
|
||||
|
@ -128,7 +129,7 @@ template("_application_snapshot") {
|
|||
# (Instead of ensuring every user of the "application_snapshot" /
|
||||
# "kernel_snapshot" passes this if needed, we always pass it)
|
||||
"-Dsdk_hash=$sdk_hash",
|
||||
"-Ddart.vm.product=$is_product",
|
||||
"-Ddart.vm.product=$is_product_flag",
|
||||
]
|
||||
args += [ rebase_path(main_dart) ]
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue