From 4595712f738e9187e7e8de7045c416effdc40361 Mon Sep 17 00:00:00 2001 From: Siva Date: Wed, 23 Oct 2024 13:18:11 -0700 Subject: [PATCH] Switch the web compilation step to use an AOT snapshot (flutter/engine#56040) Switch the Dart Development Compiler compilation step to use the dartdevc AOT snapshot. --- engine/src/flutter/web_sdk/BUILD.gn | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/engine/src/flutter/web_sdk/BUILD.gn b/engine/src/flutter/web_sdk/BUILD.gn index 95e6bcd16b..21c2027ff2 100644 --- a/engine/src/flutter/web_sdk/BUILD.gn +++ b/engine/src/flutter/web_sdk/BUILD.gn @@ -125,11 +125,12 @@ template("_dartdevc") { if (is_win) { ext = ".exe" } - dart = rebase_path("$host_prebuilt_dart_sdk/bin/dart$ext", root_out_dir) + dartaot = rebase_path("$host_prebuilt_dart_sdk/bin/dartaotruntime$ext", + root_out_dir) dartdevc = rebase_path( - "$host_prebuilt_dart_sdk/bin/snapshots/dartdevc.dart.snapshot") + "$host_prebuilt_dart_sdk/bin/snapshots/dartdevc_aot.dart.snapshot") args = [ - dart, + dartaot, dartdevc, ] + invoker.args }