Skip to content

Reimplement _TestingInterop in C++.#1622

Open
grynspan wants to merge 3 commits intomainfrom
jgrynspan/just-do-interop-in-c++
Open

Reimplement _TestingInterop in C++.#1622
grynspan wants to merge 3 commits intomainfrom
jgrynspan/just-do-interop-in-c++

Conversation

@grynspan
Copy link
Copy Markdown
Contributor

Normally we try to reduce our C++ content, but the complexity's much lower here since we can't use Swift's atomics properly on Darwin yet and since we don't need to juggle Swift module visibility.

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated.

Normally we try to _reduce_ our C++ content, but the complexity's much lower
here since we can't use Swift's atomics properly on Darwin yet and since we
don't need to juggle Swift module visibility.
@grynspan grynspan added this to the Swift 6.4.0 (main) milestone Mar 10, 2026
@grynspan grynspan self-assigned this Mar 10, 2026
@grynspan grynspan added performance 🏎️ Performance issues less-c++ 🐀 Work to reduce the size of our C++ codebase and/or dependencies tech-debt 💾 reduces technical debt interoperability ↔️ Work related to Swift Testing and XCTest interoperability labels Mar 10, 2026
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Empty file here is just to keep the compiler happy?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yarp.

FallbackEventHandler.cpp)
if("${CMAKE_CXX_COMPILER_FRONTEND_VARIANT}" STREQUAL "MSVC" OR
"${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")
target_compile_options(_TestingInternals PRIVATE
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this supposed to be compile options for _TestingInterop instead?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

interoperability ↔️ Work related to Swift Testing and XCTest interoperability less-c++ 🐀 Work to reduce the size of our C++ codebase and/or dependencies performance 🏎️ Performance issues tech-debt 💾 reduces technical debt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants