@@ -328,6 +328,9 @@ if run_os == 'ios' and run_vers.endswith('-macabi'):
328
328
run_os = 'maccatalyst'
329
329
if run_vers .endswith ('-simulator' ):
330
330
run_vers = run_vers [0 :- len ('-simulator' )]
331
+ run_environment = '-simulator'
332
+ else :
333
+ run_environment = ''
331
334
332
335
run_ptrsize = '64' if ('64' in run_cpu or run_cpu == "s390x" ) else '32'
333
336
run_ptrauth = 'ptrauth' if run_cpu == 'arm64e' else 'noptrauth'
@@ -635,8 +638,8 @@ if run_vendor == 'apple':
635
638
}
636
639
pre_stable_version = PRE_STABLE_VERSION .get (run_os , '' )
637
640
638
- config .pre_stable_abi_triple = '%s-%s-%s%s' % (run_cpu , run_vendor , run_os ,
639
- pre_stable_version )
641
+ config .pre_stable_abi_triple = '%s-%s-%s%s%s ' % (run_cpu , run_vendor , run_os ,
642
+ pre_stable_version , run_environment )
640
643
STABLE_VERSION = {
641
644
'macosx' : '10.14.4' ,
642
645
'ios' : '12.2' ,
@@ -645,8 +648,8 @@ if run_vendor == 'apple':
645
648
'watchos' : '5.2'
646
649
}
647
650
stable_version = STABLE_VERSION .get (run_os , '' )
648
- config .stable_abi_triple = '%s-%s-%s%s' % (run_cpu , run_vendor , run_os ,
649
- stable_version )
651
+ config .stable_abi_triple = '%s-%s-%s%s%s ' % (run_cpu , run_vendor , run_os ,
652
+ stable_version , run_environment )
650
653
651
654
NEXT_STABLE_VERSION = {
652
655
'macosx' : '10.15' ,
@@ -656,8 +659,9 @@ if run_vendor == 'apple':
656
659
'watchos' : '6'
657
660
}
658
661
next_stable_version = NEXT_STABLE_VERSION .get (run_os , '' )
659
- config .next_stable_abi_triple = '%s-%s-%s%s' % (run_cpu , run_vendor , run_os ,
660
- next_stable_version )
662
+ config .next_stable_abi_triple = '%s-%s-%s%s%s' % (run_cpu , run_vendor , run_os ,
663
+ next_stable_version , run_environment )
664
+
661
665
else :
662
666
config .pre_stable_abi_triple = config .variant_triple
663
667
config .stable_abi_triple = config .variant_triple
@@ -1012,7 +1016,8 @@ if run_vendor == 'apple':
1012
1016
% (config .target_build_swift ))
1013
1017
config .target_add_rpath = r'-Xlinker -rpath -Xlinker \1'
1014
1018
1015
- target_future = format ('%s-apple-%s%s' % (run_cpu , run_os , target_future_version ))
1019
+ target_future = format ('%s-apple-%s%s%s' % (run_cpu , run_os , target_future_version , run_environment ))
1020
+
1016
1021
config .otool_classic = ("%s otool-classic" % (xcrun_prefix ))
1017
1022
1018
1023
elif run_os in ['windows-msvc' ]:
0 commit comments