Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 6c4a5d9

Browse files
committed
Set the use_ios_simulator flag only on platforms where it is defined (iOS/Mac)
1 parent 945a524 commit 6c4a5d9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/gn

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,12 +182,13 @@ def to_gn_args(args):
182182
# The GN arg is not available in the windows toolchain.
183183
gn_args['enable_lto'] = enable_lto
184184

185-
gn_args['use_ios_simulator'] = False
186185
if args.target_os == 'android':
187186
gn_args['target_os'] = 'android'
188187
elif args.target_os == 'ios':
189188
gn_args['target_os'] = 'ios'
190189
gn_args['use_ios_simulator'] = args.simulator
190+
elif args.target_os == 'mac':
191+
gn_args['use_ios_simulator'] = False
191192
elif args.target_os == 'fuchsia':
192193
gn_args['target_os'] = 'fuchsia'
193194
elif args.target_os == 'winuwp':

0 commit comments

Comments
 (0)