@@ -962,12 +962,14 @@ if run_vendor == 'apple':
962
962
config .pre_stable_abi_triple = config .stable_abi_triple
963
963
config .next_stable_abi_triple = config .stable_abi_triple
964
964
config .future_abi_triple = '%s-%s-ios99-macabi' % (run_cpu , run_vendor )
965
+ config .abi_stability = 'stable'
965
966
config .available_features .add ('swift_stable_abi' )
966
967
else :
967
968
# iOS 12.2 does not support 32-bit targets, so we cannot run tests that
968
969
# want to deploy to an iOS that has Swift in the OS.
969
970
if run_os == 'ios' and run_ptrsize == '32' :
970
971
pre_stable_version = '10'
972
+ config .abi_stability = 'unstable'
971
973
else :
972
974
config .available_features .add ('swift_stable_abi' )
973
975
PRE_STABLE_VERSION = {
@@ -1015,12 +1017,14 @@ if run_vendor == 'apple':
1015
1017
future_version = FUTURE_VERSION .get (run_os , '' )
1016
1018
config .future_triple = '%s-%s-%s%s%s' % (run_cpu , run_vendor , run_os ,
1017
1019
future_version , run_environment )
1020
+ config .abi_stability = 'stable'
1018
1021
1019
1022
else :
1020
1023
config .pre_stable_abi_triple = config .variant_triple
1021
1024
config .stable_abi_triple = config .variant_triple
1022
1025
config .next_stable_abi_triple = config .variant_triple
1023
1026
config .future_triple = config .variant_triple
1027
+ config .abi_stability = 'unstable'
1024
1028
1025
1029
# On Apple platforms, this substitution names the maximum OS version *without*
1026
1030
# Swift in the OS. On non-Apple platforms this is equivalent to %target-triple.
@@ -1040,6 +1044,9 @@ config.substitutions.append(('%target-next-stable-abi-triple',
1040
1044
config .substitutions .append (('%target-future-triple' ,
1041
1045
config .future_triple ))
1042
1046
1047
+ config .substitutions .append (('%target-abi-stability' ,
1048
+ config .abi_stability ))
1049
+
1043
1050
config .substitutions .append (('%target-cpu' , run_cpu ))
1044
1051
1045
1052
target_os_abi = run_os
0 commit comments