Skip to content

Conversation

egorzhdan
Copy link
Contributor

If pbxproj contains this line:

CLANG_CXX_LANGUAGE_STANDARD = "c++2b";

then we should pass the corresponding flag to Swift compiler invocations that enable Swift/C++ interop.

Prior to this change, this worked fine for c++23, but not c++2b.

rdar://149474443

… set to `c++2b`

If pbxproj contains this line:
```
CLANG_CXX_LANGUAGE_STANDARD = "c++2b";
```
then we should pass the corresponding flag to Swift compiler invocations that enable Swift/C++ interop.

Prior to this change, this worked fine for `c++23`, but not `c++2b`.

rdar://149474443
@egorzhdan
Copy link
Contributor Author

@swift-ci please test

@egorzhdan
Copy link
Contributor Author

The sole test failure on the CI doesn't seem to be caused by this PR.

@egorzhdan egorzhdan merged commit b3a3859 into swiftlang:main Oct 3, 2025
48 of 49 checks passed
@egorzhdan egorzhdan deleted the egorzhdan/cxx-2b-flag branch October 3, 2025 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants