Skip to content

Commit f9e0294

Browse files
committed
Restore InputMode For Module Interface
1 parent 3287c4b commit f9e0294

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/Frontend/ModuleInterfaceLoader.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1142,6 +1142,8 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
11421142
genericSubInvocation.setSDKPath(SearchPathOpts.SDKPath);
11431143
}
11441144

1145+
genericSubInvocation.getFrontendOptions().InputMode
1146+
= FrontendOptions::ParseInputMode::SwiftModuleInterface;
11451147
if (!SearchPathOpts.RuntimeResourcePath.empty()) {
11461148
genericSubInvocation.setRuntimeResourcePath(SearchPathOpts.RuntimeResourcePath);
11471149
}

0 commit comments

Comments
 (0)