Restore InputMode For Module Interface

This commit is contained in:
Robert Widmann
2020-09-12 00:09:05 -06:00
parent 3287c4b271
commit f9e02946ef

View File

@@ -1142,6 +1142,8 @@ void InterfaceSubContextDelegateImpl::inheritOptionsForBuildingInterface(
genericSubInvocation.setSDKPath(SearchPathOpts.SDKPath);
}
genericSubInvocation.getFrontendOptions().InputMode
= FrontendOptions::ParseInputMode::SwiftModuleInterface;
if (!SearchPathOpts.RuntimeResourcePath.empty()) {
genericSubInvocation.setRuntimeResourcePath(SearchPathOpts.RuntimeResourcePath);
}