Skip to content

Commit e01ece1

Browse files
authored
Merge pull request #62896 from artemcm/BetterPropagationOfApplicationExtension
[Module Interface Loader] Propagate '-application-extension' by configuring the generic sub-invocation
2 parents 1933486 + c677c55 commit e01ece1

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/Frontend/ModuleInterfaceLoader.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1582,6 +1582,7 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
15821582
// If building an application extension, make sure API use
15831583
// is restricted accordingly in downstream dependnecies.
15841584
if (langOpts.EnableAppExtensionRestrictions) {
1585+
genericSubInvocation.getLangOptions().EnableAppExtensionRestrictions = true;
15851586
GenericArgs.push_back("-application-extension");
15861587
}
15871588
// Save the parent invocation's Target Triple

0 commit comments

Comments
 (0)