Front-end: pass down main executable path to the sub-ASTContext for building module interfaces. NFC

This commit is contained in:
Xi Ge
2020-07-30 12:04:53 -07:00
parent 3ee162dc94
commit bfacad6f43
4 changed files with 8 additions and 1 deletions

View File

@@ -1268,6 +1268,7 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
StringRef prebuiltCachePath,
bool serializeDependencyHashes,
bool trackSystemDependencies): SM(SM), Diags(Diags), ArgSaver(Allocator) {
subInvocation.setMainExecutablePath(LoaderOpts.mainExecutablePath);
inheritOptionsForBuildingInterface(searchPathOpts, langOpts);
// Configure front-end input.
auto &SubFEOpts = subInvocation.getFrontendOptions();