RIght now when a Swift module A enables interoperability, and Swift module B that consumes it doesn't, the compiler will fail to compile B with the following error:
lib/swift/macosx/arm64/libcxxshim.modulemap:1:8: error: module 'CxxShim' requires feature 'cplusplus'
module CxxShim {
^
<unknown>:0: error: could not build Objective-C module 'CxxShim'
--
Module A should not force the client to consume B, or if B consumes it, it should not require cplusplus.