From 4c1f1d72c1da6b3d08edf9788ed642fbe8251903 Mon Sep 17 00:00:00 2001 From: asiva Date: Tue, 22 Oct 2024 16:34:58 -0700 Subject: [PATCH 1/3] Use the AOT snapshot of dartdevc to compile programs. --- web_sdk/BUILD.gn | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web_sdk/BUILD.gn b/web_sdk/BUILD.gn index 95e6bcd16bc78..e70081eb1abda 100644 --- a/web_sdk/BUILD.gn +++ b/web_sdk/BUILD.gn @@ -126,10 +126,11 @@ template("_dartdevc") { 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 } From 4074cc23f3dee6ebc14e3131fb12ef6ebcdc7158 Mon Sep 17 00:00:00 2001 From: asiva Date: Tue, 22 Oct 2024 16:38:21 -0700 Subject: [PATCH 2/3] Format. --- web_sdk/BUILD.gn | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web_sdk/BUILD.gn b/web_sdk/BUILD.gn index e70081eb1abda..c64f0c3f4bc8f 100644 --- a/web_sdk/BUILD.gn +++ b/web_sdk/BUILD.gn @@ -126,7 +126,8 @@ template("_dartdevc") { 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) + dartaot = rebase_path("$host_prebuilt_dart_sdk/bin/dartaotruntime$ext", + root_out_dir) dartdevc = rebase_path( "$host_prebuilt_dart_sdk/bin/snapshots/dartdevc_aot.dart.snapshot") args = [ From 9a3ef2a98d5861b8806e6231eb7c93db9c894802 Mon Sep 17 00:00:00 2001 From: asiva Date: Wed, 23 Oct 2024 10:33:55 -0700 Subject: [PATCH 3/3] Fix analyzer warning. --- web_sdk/BUILD.gn | 1 - 1 file changed, 1 deletion(-) diff --git a/web_sdk/BUILD.gn b/web_sdk/BUILD.gn index c64f0c3f4bc8f..21c2027ff20d8 100644 --- a/web_sdk/BUILD.gn +++ b/web_sdk/BUILD.gn @@ -125,7 +125,6 @@ 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(