[Explicit Module Builds] Propagate the C++ Interop mode to interface sub-invocations and dependency scanner

This commit is contained in:
Artem Chikin
2023-11-07 17:00:36 -05:00
committed by artemcm
parent 1bee91bb18
commit bc17581ae6
4 changed files with 37 additions and 2 deletions

View File

@@ -506,6 +506,9 @@ validateCxxInteropCompatibilityMode(StringRef mode) {
// Swift 5 is the default language version.
if (mode == "swift-5.9")
return {CxxCompatMode::enabled, version::Version({5})};
// Note: If this is updated, corresponding code in
// InterfaceSubContextDelegateImpl::InterfaceSubContextDelegateImpl needs
// to be updated also.
return {CxxCompatMode::invalid, {}};
}