Skip to content

Commit 05daaf8

Browse files
committed
Frontend: Revert the behavior introduced by #41940.
Resolves rdar://91382164.
1 parent cd4bc88 commit 05daaf8

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

lib/Frontend/CompilerInvocation.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -795,10 +795,13 @@ static bool ParseLangArgs(LangOptions &Opts, ArgList &Args,
795795
// First, set up default minimum inlining target versions.
796796
auto getDefaultMinimumInliningTargetVersion =
797797
[&](const llvm::Triple &triple) -> llvm::VersionTuple {
798+
// FIXME: Re-enable with rdar://91387029
799+
#if SWIFT_DEFAULT_API_TARGET_MIN_INLINING_VERSION_TO_MIN
798800
// In API modules, default to the version when Swift first became available.
799801
if (Opts.LibraryLevel == LibraryLevel::API)
800802
if (auto minTriple = minimumAvailableOSVersionForTriple(triple))
801803
return *minTriple;
804+
#endif
802805

803806
// In other modules, assume that availability is used less consistently
804807
// and that library clients will generally raise deployment targets as the

test/attr/attr_inlinable_available.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,9 @@
1616
// RUN: %target-typecheck-verify-swift -swift-version 5 -enable-library-evolution -target %target-next-stable-abi-triple -target-min-inlining-version min
1717

1818

19+
// FIXME: Re-enable with rdar://91387029
1920
// Check that `-library-level api` implies `-target-min-inlining-version min`
20-
// RUN: %target-typecheck-verify-swift -swift-version 5 -enable-library-evolution -target %target-next-stable-abi-triple -library-level api
21+
// RUN/: %target-typecheck-verify-swift -swift-version 5 -enable-library-evolution -target %target-next-stable-abi-triple -library-level api
2122

2223

2324
// Check that these rules are only applied when requested and that at least some

0 commit comments

Comments
 (0)