Skip to content

🍒[cxx-interop] Propagate interop flag to the test entry point target #7437

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

egorzhdan
Copy link
Contributor

Explanation: Projects that use C++ interop for some of the Swift targets were failing to build in test mode (swift test) because the generated test entry point target wasn't being compiled with C++ interop enabled.
Scope: Flags that are being passed to the entry point test target.
Risk: Low, this only affects projects that explicitly enable C++ interop in the package manifest on non-Darwin platforms only.
Testing: Added a build plan test.
Issue: rdar://125498997
Reviewer: @MaxDesiatov approved #7428.

(cherry picked from commit f529dae)

### Motivation:

Projects that use C++ interop for some of the Swift targets were failing
to build in test mode (`swift test`) because the generated test entry
point target wasn't being compiled with C++ interop enabled.

### Modifications:

The logic that propagates the C++ interop compiler flag
(`-cxx-interoperability-mode`) to the discovery target now also runs for
the entry point target.

rdar://125498997
(cherry picked from commit f529dae)
@egorzhdan egorzhdan added the swift 5.10 This PR targets the 5.10 branch label Apr 3, 2024
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan egorzhdan changed the title [cxx-interop] Propagate interop flag to the test entry point target 🍒[cxx-interop] Propagate interop flag to the test entry point target Apr 3, 2024
@egorzhdan egorzhdan requested a review from bnbarham April 3, 2024 12:01
@egorzhdan egorzhdan enabled auto-merge (squash) April 3, 2024 12:02
@egorzhdan egorzhdan closed this May 2, 2024
auto-merge was automatically disabled May 2, 2024 13:21

Pull request was closed

@MaxDesiatov MaxDesiatov deleted the egorzhdan/5.10-cxx-interop-flag-entry-point branch August 23, 2024 16:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
swift 5.10 This PR targets the 5.10 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant