Skip to content
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

[SR-13164] Link correctly against the C++ standard library on Windows #55607

Closed
swift-ci opened this issue Jul 7, 2020 · 3 comments
Closed
Labels
c++ interop Feature: Interoperability with C++ compiler The Swift compiler in itself feature A feature request or implementation Windows Platform: Windows

Comments

@swift-ci
Copy link
Collaborator

swift-ci commented Jul 7, 2020

Previous ID SR-13164
Radar rdar://problem/83423233
Original Reporter MForster (JIRA User)
Type New Feature
Additional Detail from JIRA
Votes 0
Component/s Compiler
Labels New Feature, CxxInterop, Windows
Assignee None
Priority Medium

md5: d9d8ab51197f34ce89129369bc816236

Issue Description:

#30914 adds support for linking against the C++ standard library when C++ interop is enabled. We need to make sure that this works on Windows as well.

See context here.

@zoecarver
Copy link
Collaborator

@swift-ci create

@compnerd
Copy link
Collaborator

I think that this just needs verification, but it should be fixed. The consequence of my changes to the swift-driver is that we do not need to change this - the swift driver will use clang++ as the linker driver, which will correctly identify the c++ runtime and link to it. Should the user wish to change the c++ runtime, they should be able to use `-Xclang-linker -stdlib=libc++`.

@swift-ci swift-ci transferred this issue from apple/swift-issues Apr 25, 2022
@zoecarver zoecarver added c++ interop Feature: Interoperability with C++ and removed CxxInterop labels Apr 25, 2022
@compnerd
Copy link
Collaborator

Going to mark this as fixed for now. We can re-open it if it is still an issue. We should be linking properly due to the use of clang as the linker driver.

@AnthonyLatsis AnthonyLatsis added feature A feature request or implementation and removed new feature labels Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
c++ interop Feature: Interoperability with C++ compiler The Swift compiler in itself feature A feature request or implementation Windows Platform: Windows
Projects
None yet
Development

No branches or pull requests

4 participants