mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[cxx-interop] compilations that do not enable C++ interoperability should not be able to import modules that do enable C++ interoperability by default
A supplemental hidden frontend option allows advanced users to opt-out of this requirement. Fixes https://github.com/apple/swift/issues/65833 Fixes https://github.com/apple/swift/issues/65832
This commit is contained in:
@@ -654,6 +654,14 @@ public:
|
||||
Bits.ModuleDecl.HasHermeticSealAtLink = enabled;
|
||||
}
|
||||
|
||||
/// Returns true if this module was built with C++ interoperability enabled.
|
||||
bool hasCxxInteroperability() const {
|
||||
return Bits.ModuleDecl.HasCxxInteroperability;
|
||||
}
|
||||
void setHasCxxInteroperability(bool enabled = true) {
|
||||
Bits.ModuleDecl.HasCxxInteroperability = enabled;
|
||||
}
|
||||
|
||||
/// \returns true if this module is a system module; note that the StdLib is
|
||||
/// considered a system module.
|
||||
bool isSystemModule() const {
|
||||
|
||||
Reference in New Issue
Block a user