From fc6eb985cd761deba2ca10a71fd08f71dc01c077 Mon Sep 17 00:00:00 2001 From: Vyacheslav Egorov Date: Thu, 25 May 2023 14:38:54 +0000 Subject: [PATCH] Train kernel-service on M1 Macs R=kustermann@google.com Change-Id: I542a7dfb3987d7e66ffe4fb8b5cd75a3f7674bd1 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/305741 Commit-Queue: Slava Egorov Reviewed-by: Martin Kustermann --- runtime/runtime_args.gni | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/runtime/runtime_args.gni b/runtime/runtime_args.gni index 210a5a93a13..a609666815a 100644 --- a/runtime/runtime_args.gni +++ b/runtime/runtime_args.gni @@ -88,7 +88,9 @@ declare_args() { # We create a kernel service app-jit snapshot only for when the target # architecture is x64 for other cases we will use the '.dill' file # which is already linked in the VM. - create_kernel_service_snapshot = dart_target_arch == "x64" + create_kernel_service_snapshot = + dart_target_arch == "x64" || + (dart_target_arch == "arm64" && target_os == "mac") # The analyze_snapshot tool is only supported on 64 bit AOT builds that use # ELF.