Skip to content

Conversation

compnerd
Copy link
Member

This adjusts the linker job construction to switch the linker driver to
the C++ compiler driver as the linker driver when C++ interop is
enabled. This allows us to ensure that we properly link against the C++
runtime which should be assumed to be needed with C++ interop. This is
required for further exploration of C++ interop.

@compnerd compnerd requested a review from artemcm February 24, 2022 17:22
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

CC: @hyp @zoecarver

@compnerd
Copy link
Member Author

@swift-ci please test

This adjusts the linker job construction to switch the linker driver to
the C++ compiler driver as the linker driver when C++ interop is
enabled.  This allows us to ensure that we properly link against the C++
runtime which should be assumed to be needed with C++ interop.  This is
required for further exploration of C++ interop.
@compnerd
Copy link
Member Author

@swift-ci please test

Copy link
Contributor

@artemcm artemcm left a comment

Choose a reason for hiding this comment

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

This looks good to me in terms of the changes and being gated on enableExperimentalCxxInterop, but I'd really like this PR to get a review from @hyp or @zoecarver.

@hyp hyp self-requested a review March 1, 2022 17:23
Copy link
Contributor

@hyp hyp left a comment

Choose a reason for hiding this comment

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

LGTM

@compnerd compnerd merged commit 0f9f247 into swiftlang:main Mar 1, 2022
@compnerd compnerd deleted the clangxx branch March 1, 2022 17:40
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.

3 participants