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

stdlib,Runtimes: begin preparing for a static stdlib on Windows #78476

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Jan 7, 2025

When building the standard library statically on Windows, we should not use any __declspec(dllimport) or __declspec(dllexport) on the runtime functions or data. Furthermore, we should internalise all of the standard library functions so that they are not re-exported if used to build a shared library. The code generation changes required for this are easier to identify once a static SDK is available for Windows.

@compnerd compnerd requested a review from a team as a code owner January 7, 2025 21:40
@compnerd compnerd requested review from etcwilde and DougGregor and removed request for a team January 7, 2025 21:40
@compnerd
Copy link
Member Author

compnerd commented Jan 7, 2025

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Jan 7, 2025

@swift-ci please test

@compnerd
Copy link
Member Author

compnerd commented Jan 8, 2025

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

compnerd commented Jan 8, 2025

@swift-ci please test Linux platform

@compnerd
Copy link
Member Author

compnerd commented Jan 8, 2025

@swift-ci please smoke test

When building the standard library statically on Windows, we should not
use any __declspec(dllimport) or __declspec(dllexport) on the runtime
functions or data. Furthermore, we should internalise all of the
standard library functions so that they are not re-exported if used to
build a shared library. The code generation changes required for this
are easier to identify once a static SDK is available for Windows.
@compnerd
Copy link
Member Author

compnerd commented Jan 9, 2025

@swift-ci please test

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.

2 participants