mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cxx-interop] implicitly imported CxxShim module should not force client modules to enable C++ interoperability
Fixes https://github.com/apple/swift/issues/65831
This commit is contained in:
@@ -1176,7 +1176,7 @@ ImplicitImportInfo CompilerInstance::getImplicitImportInfo() const {
|
||||
}
|
||||
|
||||
if (Invocation.getLangOptions().EnableCXXInterop && canImportCxxShim()) {
|
||||
pushImport(CXX_SHIM_NAME);
|
||||
pushImport(CXX_SHIM_NAME, {ImportFlags::ImplementationOnly});
|
||||
}
|
||||
|
||||
imports.ShouldImportUnderlyingModule = frontendOpts.ImportUnderlyingModule;
|
||||
|
||||
Reference in New Issue
Block a user