mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Module Interface Loader] Propagate '-application-extension' by configuring the generic sub-invocation
This commit is contained in:
@@ -1582,6 +1582,7 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
|
||||
// If building an application extension, make sure API use
|
||||
// is restricted accordingly in downstream dependnecies.
|
||||
if (langOpts.EnableAppExtensionRestrictions) {
|
||||
genericSubInvocation.getLangOptions().EnableAppExtensionRestrictions = true;
|
||||
GenericArgs.push_back("-application-extension");
|
||||
}
|
||||
// Save the parent invocation's Target Triple
|
||||
|
||||
Reference in New Issue
Block a user