mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
Frontend: Rename -enable-ad-hoc-availability to -weak-link-at-target.
I am separating the concern of weakly linking symbols that are introduced at the deployment target from the concern of type checking this new type of potential unavailability. Resolves rdar://97925900
This commit is contained in:
@@ -480,7 +480,7 @@ bool SILFunction::isWeakImported() const {
|
||||
auto deploymentTarget =
|
||||
AvailabilityContext::forDeploymentTarget(getASTContext());
|
||||
|
||||
if (getASTContext().LangOpts.EnableAdHocAvailability)
|
||||
if (getASTContext().LangOpts.WeakLinkAtTarget)
|
||||
return !Availability.isSupersetOf(deploymentTarget);
|
||||
|
||||
return !deploymentTarget.isContainedIn(Availability);
|
||||
|
||||
Reference in New Issue
Block a user