Skip to content

🍒[cxx-interop] Do not pass the C++ standard if C++ interop is not enabled #7194

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

Merged
merged 1 commit into from
Dec 12, 2023

Conversation

egorzhdan
Copy link
Contributor

This fixes the Swift PR testing failures.

Motivation:

If C++ interop is not enabled, SwiftPM should not pass -Xcc -std=c++17 flags.

Result:

Only pass these flags if C++ interop is enabled.

Original PR: #7188

(cherry picked from commit 351222f)

…led (#7188)

This fixes the Swift PR testing failures.

### Motivation:

If C++ interop is not enabled, SwiftPM should not pass `-Xcc -std=c++17`
flags.

### Result:

Only pass these flags if C++ interop is enabled.

(cherry picked from commit 351222f)
@egorzhdan egorzhdan added bug C++ interop swift 5.10 This PR targets the 5.10 branch labels Dec 12, 2023
@mikeash mikeash merged commit 0c5312b into release/5.10 Dec 12, 2023
@mikeash mikeash deleted the egorzhdan/5.10-cpp-std-fix branch December 12, 2023 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug C++ interop swift 5.10 This PR targets the 5.10 branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants