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

SourceKit: correct the macro definitions to avoid warnings on Windows #78821

Merged
merged 1 commit into from
Jan 23, 2025

Conversation

compnerd
Copy link
Member

This silences a large number of warnings due to
-Winconsistent-dllimport. While it is possible to support the library to be built statically, that is not currently supported by the build system, so simply leave that unsupported for decoration.

An option here for ELF targets would be to use
__attribute__((__visibility__("default"))) and enable hidden visibility by default enabling a small bit of optimization.

Copy link
Member

@ahoppen ahoppen left a comment

Choose a reason for hiding this comment

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

Thank you

Verified

This commit was signed with the committer’s verified signature.
compnerd Saleem Abdulrasool
This silences a large number of warnings due to
`-Winconsistent-dllimport`. While it is possible to support the library
to be built statically, that is not currently supported by the build
system, so simply leave that unsupported for decoration.

An option here for ELF targets would be to use
`__attribute__((__visibility__("default")))` and enable hidden
visibility by default enabling a small bit of optimization.
@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

2 similar comments
@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

@swift-ci please test macOS platform

@compnerd compnerd merged commit bfd0999 into swiftlang:main Jan 23, 2025
5 checks passed
@compnerd compnerd deleted the tradewars branch January 23, 2025 23:29
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.

None yet

2 participants