Wire up the interpreter on iOS devices. (#2648)

This commit is contained in:
Chinmay Garde
2016-05-06 15:37:59 -07:00
parent 649b01bb3f
commit 5fa5ec5a8b
3 changed files with 14 additions and 1 deletions

View File

@@ -50,6 +50,11 @@ def to_gn_args(args):
gn_args['is_debug'] = args.debug
gn_args['is_clang'] = args.clang and args.target_os not in ['android']
ios_target_cpu = 'arm64'
if args.ios_force_armv7:
ios_target_cpu = 'arm'
if args.target_os == 'android':
gn_args['target_os'] = 'android'
aot = not args.develop
@@ -88,6 +93,8 @@ def to_gn_args(args):
else:
gn_args['dart_runtime_mode'] = 'develop'
gn_args['dart_experimental_interpreter'] = args.experimental_interpreter
gn_args['flutter_product_mode'] = (gn_args['dart_runtime_mode'] == 'release')
if args.target_sysroot:
@@ -126,6 +133,7 @@ def parse_args(args):
# Adding it now unblocks bot/tool work.
parser.add_argument('--develop', default=True, action='store_true')
parser.add_argument('--deploy', default=False, dest='develop', action='store_false')
parser.add_argument('--experimental-interpreter', default=False, dest='experimental_interpreter', action='store_true')
parser.add_argument('--target-os', type=str, choices=['android', 'ios'])
parser.add_argument('--android', dest='target_os', action='store_const', const='android')

View File

@@ -17,6 +17,11 @@ static const char* kDartArgs[] = {
"--enable_mirrors=false",
"--load_deferred_eagerly=true",
"--conditional_directives",
// TODO(chinmaygarde): The experimental interpreter for iOS device targets
// does not support all these flags. The build process uses its own version
// of this snapshotter. Till support for all these flags is added, make
// sure the snapshotter does not error out on unrecognized flags.
"--ignore-unrecognized-flags",
};
void InitDartVM() {