Merge pull request #71624 from artemcm/DepScanCxxInteropImportNo

[Dependency Scanning] Interface-scanning sub-invocations should not attempt to import `CxxShims`
This commit is contained in:
Artem Chikin
2024-02-15 11:57:08 -08:00
committed by GitHub
4 changed files with 29 additions and 1 deletions

View File

@@ -1808,6 +1808,8 @@ InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl(
// in the Swift compile commands, when different.
inheritedParentContextClangArgs =
clangImporterOpts.getReducedExtraArgsForSwiftModuleDependency();
genericSubInvocation.getFrontendOptions()
.DependencyScanningSubInvocation = true;
} else if (LoaderOpts.strictImplicitModuleContext) {
// If the compiler has been asked to be strict with ensuring downstream
// dependencies get the parent invocation's context, inherit the extra Clang