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:
@@ -386,8 +386,11 @@ private:
|
||||
/// \c true if this module was built with complete checking for concurrency.
|
||||
unsigned IsConcurrencyChecked: 1;
|
||||
|
||||
/// Whether this module is built with C++ interoperability enabled.
|
||||
unsigned HasCxxInteroperability : 1;
|
||||
|
||||
// Explicitly pad out to the next word boundary.
|
||||
unsigned : 4;
|
||||
unsigned : 3;
|
||||
} Bits = {};
|
||||
static_assert(sizeof(ModuleBits) <= 8, "The bit set should be small");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user