Only package analyze_snapshot for Linux host
Change-Id: Id1eab468644ec1729896f2842abe9dc3b91e885e
Reviewed-on: https://flutter-review.googlesource.com/c/recipes/+/38224
Reviewed-by: Casey Hillers <chillers@google.com>
Commit-Queue: Zach Anderson <zra@google.com>
diff --git a/recipes/engine/engine.py b/recipes/engine/engine.py
index 114563a..260d0de 100644
--- a/recipes/engine/engine.py
+++ b/recipes/engine/engine.py
@@ -560,10 +560,11 @@
def GetNinjaTargets(self):
return ['default', '%s/gen_snapshot' % self.clang_dir]
- def GetOutputFiles(self, runtime_mode):
+ def GetOutputFiles(self, api, runtime_mode):
analyze_snapshot = []
if self.android_cpu == "x64" or self.android_cpu == "arm64":
- analyze_snapshot = [self.GetAnalyzeSnapshotPath()]
+ if api.platform.is_linux:
+ analyze_snapshot = [self.GetAnalyzeSnapshotPath()]
return ([
self.GetFlutterJarPath(),
self.GetGenSnapshotPath(),
@@ -636,7 +637,7 @@
'gn_args': aot_variant.GetGNArgs(runtime_mode),
'dir': build_out_dir,
'targets': aot_variant.GetNinjaTargets(),
- 'output_files': aot_variant.GetOutputFiles(runtime_mode),
+ 'output_files': aot_variant.GetOutputFiles(api, runtime_mode),
}],
}