@@ -231,23 +231,6 @@ source_set("snapshot") {
231
231
get_target_outputs (" :platform_strong_dill_linkable" )
232
232
}
233
233
234
- compile_platform (" non_strong_platform" ) {
235
- single_root_scheme = " org-dartlang-sdk"
236
- single_root_base = rebase_path (" ../../../" )
237
- libraries_specification_uri =
238
- " org-dartlang-sdk:///flutter/lib/snapshot/libraries.json"
239
-
240
- outputs = [
241
- " $root_out_dir /flutter_patched_sdk/platform.dill" ,
242
- " $root_out_dir /flutter_patched_sdk/vm_outline.dill" ,
243
- ]
244
-
245
- args = [
246
- " --target=flutter" ,
247
- " dart:core" ,
248
- ]
249
- }
250
-
251
234
compile_platform (" strong_platform" ) {
252
235
single_root_scheme = " org-dartlang-sdk"
253
236
single_root_base = rebase_path (" ../../../" )
@@ -259,8 +242,13 @@ compile_platform("strong_platform") {
259
242
" $root_out_dir /flutter_patched_sdk/vm_outline_strong.dill" ,
260
243
]
261
244
245
+ is_runtime_mode_release = flutter_runtime_mode == " release"
246
+ allow_causal_async_stacks = ! is_runtime_mode_release
262
247
args = [
263
248
" --target=flutter" ,
249
+ " -Ddart.vm.product=$is_runtime_mode_release " ,
250
+ " -Ddart.developer.causal_async_stacks=$allow_causal_async_stacks " ,
251
+ " -Ddart.isVM=true" ,
264
252
" dart:core" ,
265
253
]
266
254
}
@@ -275,7 +263,6 @@ if (is_fuchsia || is_fuchsia_host) {
275
263
} else {
276
264
group (" kernel_platform_files" ) {
277
265
public_deps = [
278
- " :non_strong_platform" ,
279
266
" :strong_platform" ,
280
267
]
281
268
}
0 commit comments