From 712b870cfb120f72b2e6721712e5ea09f8b5d55a Mon Sep 17 00:00:00 2001 From: Jason Simmons Date: Thu, 13 Apr 2017 15:14:25 -0700 Subject: [PATCH] Exclude Vm/IsolateSnapshotData in AOT modes on both Android and iOS (flutter/engine#3592) Fixes https://github.com/flutter/flutter/issues/9339 --- engine/src/flutter/runtime/BUILD.gn | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/src/flutter/runtime/BUILD.gn b/engine/src/flutter/runtime/BUILD.gn index a152aaa204..c7895bf406 100644 --- a/engine/src/flutter/runtime/BUILD.gn +++ b/engine/src/flutter/runtime/BUILD.gn @@ -103,10 +103,10 @@ source_set("runtime") { deps += [ "//lib/tonic/debugger" ] } - # On iOS (device), precompiled snapshots contain the instruction buffer. + # In AOT mode, precompiled snapshots contain the instruction buffer. # Generation of the same requires all application specific script code to be # specified up front. In such cases, there can be no generic snapshot. - if (!is_ios || use_ios_simulator) { + if (!flutter_aot) { deps += [ "//flutter/lib/snapshot" ] } }