🍒[cxx-interop] Do not emit C++ interop flag in textual interfaces #77989
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Explanation: This makes sure that the compiler does not emit
-enable-experimental-cxx-interop
/-cxx-interoperability-mode
flags in.swiftinterface
files. Those flags were breaking explicit module builds. The module can still be rebuilt from its textual interface if C++ interop was enabled in the current compilation.Scope: This alters the logic that emits and reads compiler flags from
.swiftinterface
files.Risk: Medium, this changes the textual interfaces emitted by the compiler, which can theoretically have adverse effects on dependencies of the current module.
Testing: This is covered by compiler tests.
Issue: rdar://140203932
Reviewer: @artemcm @Xazax-hun
Original PR: #77754