Roll Dart and set dart_runtime_mode in the GN script (#2610)
This commit is contained in:
@@ -48,7 +48,13 @@ def to_gn_args(args):
|
||||
|
||||
gn_args['is_debug'] = args.debug
|
||||
gn_args['is_clang'] = args.clang and args.target_os not in ['android', 'fnl']
|
||||
gn_args['flutter_develop_mode'] = args.develop
|
||||
|
||||
if args.develop:
|
||||
gn_args['dart_runtime_mode'] = 'develop'
|
||||
elif args.debug:
|
||||
gn_args['dart_runtime_mode'] = 'profile'
|
||||
else:
|
||||
gn_args['dart_runtime_mode'] = 'release'
|
||||
|
||||
ios_target_cpu = 'arm64'
|
||||
if args.ios_force_armv7:
|
||||
@@ -107,7 +113,6 @@ def to_gn_args(args):
|
||||
gn_args['enable_gcm'] = args.enable_gcm
|
||||
gn_args['enable_google_sign_in'] = args.enable_google_sign_in
|
||||
gn_args['use_glfw'] = args.use_glfw
|
||||
gn_args['dart_product'] = not args.develop
|
||||
|
||||
return gn_args
|
||||
|
||||
|
||||
@@ -34,8 +34,4 @@ executable("sky_snapshot") {
|
||||
"-lgcc_s",
|
||||
]
|
||||
}
|
||||
|
||||
if (flutter_develop_mode) {
|
||||
defines = [ "FLUTTER_DEVELOP_MODE=1" ]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,10 +14,8 @@ extern void* kDartIsolateSnapshotBuffer;
|
||||
}
|
||||
|
||||
static const char* kDartArgs[] = {
|
||||
#ifdef FLUTTER_DEVELOP_MODE
|
||||
"--enable_mirrors=false",
|
||||
"--load_deferred_eagerly=true",
|
||||
#endif
|
||||
"--conditional_directives",
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user