Disable iOS simulator flag when targeting mac (flutter/engine#29151)

This commit is contained in:
Zachary Anderson
2021-10-13 13:31:42 -07:00
committed by GitHub
parent 794db8c01b
commit 5cafa8efb9

View File

@@ -117,8 +117,8 @@ def can_use_prebuilt_dart(args):
def to_gn_args(args):
if args.simulator:
if args.target_os == 'android':
raise Exception('--simulator is not supported on Android')
if args.target_os != 'ios':
raise Exception('--simulator is only supported for iOS')
runtime_mode = args.runtime_mode
@@ -182,6 +182,7 @@ def to_gn_args(args):
# The GN arg is not available in the windows toolchain.
gn_args['enable_lto'] = enable_lto
gn_args['use_ios_simulator'] = False
if args.target_os == 'android':
gn_args['target_os'] = 'android'
elif args.target_os == 'ios':