Skip to content

Commit a5765ab

Browse files
authored
Merge pull request #61918 from mikeash/future-version-consistency
Standardize "future" OS versions on 99.99.
2 parents 59d6f5c + 98b9d3d commit a5765ab

File tree

2 files changed

+11
-11
lines changed

2 files changed

+11
-11
lines changed

lib/AST/Availability.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -646,10 +646,10 @@ AvailabilityContext ASTContext::getSwiftFutureAvailability() {
646646
VersionRange::allGTE(llvm::VersionTuple(99, 99, 0)));
647647
} else if (target.isiOS()) {
648648
return AvailabilityContext(
649-
VersionRange::allGTE(llvm::VersionTuple(99, 0, 0)));
649+
VersionRange::allGTE(llvm::VersionTuple(99, 99, 0)));
650650
} else if (target.isWatchOS()) {
651651
return AvailabilityContext(
652-
VersionRange::allGTE(llvm::VersionTuple(9, 99, 0)));
652+
VersionRange::allGTE(llvm::VersionTuple(99, 99, 0)));
653653
} else {
654654
return AvailabilityContext::alwaysAvailable();
655655
}

test/lit.cfg

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -828,10 +828,10 @@ if run_vendor == 'apple':
828828
next_stable_version, run_environment)
829829
FUTURE_VERSION = {
830830
'macosx': '99.99',
831-
'ios': '99.0',
831+
'ios': '99.99',
832832
'maccatalyst': '99.99',
833-
'tvos': '99.0',
834-
'watchos': '9.99.0'
833+
'tvos': '99.99',
834+
'watchos': '99.99'
835835
}
836836
future_version = FUTURE_VERSION.get(run_os, '')
837837
config.future_triple = '%s-%s-%s%s%s' % (run_cpu, run_vendor, run_os,
@@ -1131,15 +1131,15 @@ if run_vendor == 'apple':
11311131
if run_os == 'ios':
11321132
lit_config.note('Testing iOS ' + config.variant_triple)
11331133
xcrun_sdk_name = "iphoneos"
1134-
target_future_version = "99.0"
1134+
target_future_version = "99.99.0"
11351135
elif run_os == 'tvos':
11361136
lit_config.note('Testing AppleTV ' + config.variant_triple)
11371137
xcrun_sdk_name = "appletvos"
1138-
target_future_version = "99.0"
1138+
target_future_version = "99.99.0"
11391139
elif run_os == 'watchos':
11401140
lit_config.note('Testing watchOS ' + config.variant_triple)
11411141
xcrun_sdk_name = "watchos"
1142-
target_future_version = "9.99.0"
1142+
target_future_version = "99.99.0"
11431143

11441144
config.target_env_prefix = 'IOS_CHILD_'
11451145

@@ -1171,17 +1171,17 @@ if run_vendor == 'apple':
11711171
config.available_features.add('DARWIN_SIMULATOR=ios')
11721172
lit_config.note("Testing iOS simulator " + config.variant_triple)
11731173
xcrun_sdk_name = "iphonesimulator"
1174-
target_future_version = "99.0"
1174+
target_future_version = "99.99.0"
11751175
elif run_os == 'watchos':
11761176
config.available_features.add('DARWIN_SIMULATOR=watchos')
11771177
lit_config.note("Testing watchOS simulator " + config.variant_triple)
11781178
xcrun_sdk_name = "watchsimulator"
1179-
target_future_version = "9.99.0"
1179+
target_future_version = "99.99.0"
11801180
else:
11811181
config.available_features.add('DARWIN_SIMULATOR=tvos')
11821182
lit_config.note("Testing AppleTV simulator " + config.variant_triple)
11831183
xcrun_sdk_name = "appletvsimulator"
1184-
target_future_version = "99.0"
1184+
target_future_version = "99.99.0"
11851185

11861186
target_specific_module_triple += "-simulator"
11871187

0 commit comments

Comments
 (0)