You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[cxx-interop] Make test discovery compatible with C++ interop (#7165)
### Motivation:
If a Swift module is built with C++ interop enabled, all of its
dependencies must also be built with C++ interop enabled.
Swift packages that use test discovery get a synthesized
"PackageDiscoveredTests" target which is built by SwiftPM when someone
runs `swift test` command. This module is currently always built without
C++ interop, which is causing issues for projects that rely on it.
### Modifications:
This patch makes sure that the `-cxx-interoperability-mode=` command
line flag gets propagated to the test discovery target.
### Result:
Packages that use both C++ interop and test discovery can now be built
successfully by SwiftPM.
rdar://117078320 / resolves#6990
0 commit comments