[Module Interface Loader] Propagate '-application-extension' by configuring the generic sub-invocation

This commit is contained in:
Artem Chikin
2023-01-06 14:31:05 -08:00
parent f315e11417
commit c677c5533c

View File

@@ -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