@@ -962,12 +962,14 @@ if run_vendor == 'apple':
962962 config .pre_stable_abi_triple = config .stable_abi_triple
963963 config .next_stable_abi_triple = config .stable_abi_triple
964964 config .future_abi_triple = '%s-%s-ios99-macabi' % (run_cpu , run_vendor )
965+ config .abi_stability = 'stable'
965966 config .available_features .add ('swift_stable_abi' )
966967 else :
967968 # iOS 12.2 does not support 32-bit targets, so we cannot run tests that
968969 # want to deploy to an iOS that has Swift in the OS.
969970 if run_os == 'ios' and run_ptrsize == '32' :
970971 pre_stable_version = '10'
972+ config .abi_stability = 'unstable'
971973 else :
972974 config .available_features .add ('swift_stable_abi' )
973975 PRE_STABLE_VERSION = {
@@ -1015,12 +1017,14 @@ if run_vendor == 'apple':
10151017 future_version = FUTURE_VERSION .get (run_os , '' )
10161018 config .future_triple = '%s-%s-%s%s%s' % (run_cpu , run_vendor , run_os ,
10171019 future_version , run_environment )
1020+ config .abi_stability = 'stable'
10181021
10191022else :
10201023 config .pre_stable_abi_triple = config .variant_triple
10211024 config .stable_abi_triple = config .variant_triple
10221025 config .next_stable_abi_triple = config .variant_triple
10231026 config .future_triple = config .variant_triple
1027+ config .abi_stability = 'unstable'
10241028
10251029# On Apple platforms, this substitution names the maximum OS version *without*
10261030# 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',
10401044config .substitutions .append (('%target-future-triple' ,
10411045 config .future_triple ))
10421046
1047+ config .substitutions .append (('%target-abi-stability' ,
1048+ config .abi_stability ))
1049+
10431050config .substitutions .append (('%target-cpu' , run_cpu ))
10441051
10451052target_os_abi = run_os
0 commit comments