Skip to content

Emit /DEFAULTLIB directive for #pragma comment(lib, ...) in a C module #31913

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

Merged
merged 1 commit into from
May 29, 2020

Conversation

martinboehme
Copy link
Contributor

This is important, for example, for linking correctly to the C++
standard library on Windows, which uses #pragma comment(lib, ...) in
its headers to specify the correct library to link against.

…odule.

This is important, for example, for linking correctly to the C++
standard library on Windows, which uses `#pragma comment(lib, ...)` in
its headers to specify the correct library to link against.
@martinboehme
Copy link
Contributor Author

@swift-ci Please test

@martinboehme martinboehme requested a review from compnerd May 20, 2020 13:32
@gribozavr gribozavr added the c++ interop Feature: Interoperability with C++ label May 20, 2020
Copy link
Member

@compnerd compnerd left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me. Doug may have opinions as well.

CC: @DougGregor

@compnerd
Copy link
Member

CC: @belkadan - can't leave Jordan off this!

@martinboehme
Copy link
Contributor Author

Merging, as there haven't been any further comments in a week.

@martinboehme martinboehme merged commit 1a770a3 into swiftlang:master May 29, 2020
@martinboehme martinboehme deleted the autolink-c-pragma branch May 29, 2020 12:09
@DougGregor
Copy link
Member

Looks totally reasonable, sorry I didn't see this before

@martinboehme
Copy link
Contributor Author

Looks totally reasonable, sorry I didn't see this before

NP, thanks for taking a look!

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++
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants