mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
[Dependency Scanning] Interface-scanning sub-invocations should not attempt to import CxxShims
Swift interfaces currently aren't meant to expose C++ in their API so we should not also bring in this C++-related module dependency which is not found when the ClangImporter is not configured for C++.
This commit is contained in:
@@ -1803,6 +1803,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
|
||||
|
||||
Reference in New Issue
Block a user