ModuleInterface: ensure -disable-clang-spi flag to propagate to module interface builders

This commit is contained in:
Xi Ge
2022-04-02 21:30:39 -07:00
parent ecf8a35dc1
commit 8dd638fbd0
3 changed files with 28 additions and 1 deletions

View File

@@ -1493,6 +1493,11 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
}
}
subClangImporterOpts.EnableClangSPI = clangImporterOpts.EnableClangSPI;
if (!subClangImporterOpts.EnableClangSPI) {
GenericArgs.push_back("-disable-clang-spi");
}
// Tell the genericSubInvocation to serialize dependency hashes if asked to do
// so.
auto &frontendOpts = genericSubInvocation.getFrontendOptions();