ModuleInterface: pass down block list file paths to module interface building context and command lines

This commit is contained in:
Xi Ge
2023-04-08 16:11:07 -07:00
parent 8c20494f38
commit 68e6b22230
3 changed files with 32 additions and 1 deletions

View File

@@ -1697,6 +1697,13 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
// module cache path at this point.
if (buildModuleCacheDirIfAbsent && !moduleCachePath.empty())
(void)llvm::sys::fs::create_directories(moduleCachePath);
// Inherit all block list configuration files
frontendOpts.BlocklistConfigFilePaths = langOpts.BlocklistConfigFilePaths;
for (auto &blocklist: langOpts.BlocklistConfigFilePaths) {
GenericArgs.push_back("-blocklist-file");
GenericArgs.push_back(blocklist);
}
}
/// Calculate an output filename in \p genericSubInvocation's cache path that