Skip to content

Commit acddc6f

Browse files
authored
Merge pull request #42084 from tshortli/test-maccatalyst-min-inlining
Frontend: Separate macCatalyst `-target-min-inlining-version` floor
2 parents edc49bc + c641064 commit acddc6f

File tree

3 files changed

+571
-1
lines changed

3 files changed

+571
-1
lines changed

lib/Basic/Platform.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,10 @@ swift::minimumAvailableOSVersionForTriple(const llvm::Triple &triple) {
8484
if (triple.isMacOSX())
8585
return llvm::VersionTuple(10, 10, 0);
8686

87+
// Mac Catalyst was introduced with an iOS deployment target of 13.1.
88+
if (tripleIsMacCatalystEnvironment(triple))
89+
return llvm::VersionTuple(13, 1);
90+
8791
// Note: this must come before checking iOS since that returns true for
8892
// both iOS and tvOS.
8993
if (triple.isTvOS())
@@ -133,6 +137,7 @@ DarwinPlatformKind swift::getDarwinPlatformKind(const llvm::Triple &triple) {
133137

134138
if (tripleIsiOSSimulator(triple))
135139
return DarwinPlatformKind::IPhoneOSSimulator;
140+
136141
return DarwinPlatformKind::IPhoneOS;
137142
}
138143

test/attr/attr_inlinable_available.swift

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ public func deployedUseAfterDeploymentTarget(
226226

227227
//
228228
// Uses in inlinable functions are based on the minimum inlining target
229-
// (i.e. the first ABI-stable version, in this case)
230229
//
231230

232231
@inlinable public func inlinedUseNoAvailable( // expected-note 8 {{add @available attribute}}

0 commit comments

Comments
 (0)