Skip to content

Commit 0a937ba

Browse files
authored
Use AOT snapshot of kernel_worker (#165103)
Use AOT snapshot of kernel_worker
1 parent 884de61 commit 0a937ba

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

engine/src/flutter/web_sdk/BUILD.gn

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,12 +176,13 @@ template("_kernel_worker") {
176176
if (is_win) {
177177
ext = ".exe"
178178
}
179-
dart = rebase_path("$host_prebuilt_dart_sdk/bin/dart$ext", root_out_dir)
179+
dartaot = rebase_path("$host_prebuilt_dart_sdk/bin/dartaotruntime$ext",
180+
root_out_dir)
180181
kernel_worker = rebase_path(
181-
"$host_prebuilt_dart_sdk/bin/snapshots/kernel_worker.dart.snapshot")
182+
"$host_prebuilt_dart_sdk/bin/snapshots/kernel_worker_aot.dart.snapshot")
182183

183184
args = [
184-
dart,
185+
dartaot,
185186
kernel_worker,
186187
] + invoker.args
187188
}

0 commit comments

Comments
 (0)