mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
Merge pull request #61545 from artemcm/PropagateApplicationExtensionStatus
Propagate '-application-extension' to module interface loader sub-invocations.
This commit is contained in:
@@ -1564,6 +1564,11 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
|
||||
genericSubInvocation.getFrontendOptions().DisableImplicitModules = true;
|
||||
GenericArgs.push_back("-disable-implicit-swift-modules");
|
||||
}
|
||||
// If building an application extension, make sure API use
|
||||
// is restricted accordingly in downstream dependnecies.
|
||||
if (langOpts.EnableAppExtensionRestrictions) {
|
||||
GenericArgs.push_back("-application-extension");
|
||||
}
|
||||
// Save the parent invocation's Target Triple
|
||||
ParentInvocationTarget = langOpts.Target;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user