mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[ModuleInterface] Pass clang module cache path to sub-instance.
This commit is contained in:
@@ -122,6 +122,12 @@ ParseableInterfaceModuleLoader::configureSubInvocationAndOutputPaths(
|
||||
SubInvocation.setRuntimeResourcePath(SearchPathOpts.RuntimeResourcePath);
|
||||
SubInvocation.setTargetTriple(LangOpts.Target);
|
||||
|
||||
if (auto ClangLoader = Ctx.getClangModuleLoader()) {
|
||||
auto const &Clang = ClangLoader->getClangInstance();
|
||||
std::string ModuleCachePath = getModuleCachePathFromClang(Clang);
|
||||
SubInvocation.setClangModuleCachePath(ModuleCachePath);
|
||||
}
|
||||
|
||||
// Calculate an output filename that includes a hash of relevant key data, and
|
||||
// wire up the SubInvocation's InputsAndOutputs to contain both input and
|
||||
// output filenames.
|
||||
|
||||
Reference in New Issue
Block a user