Skip to content

remove unnecessary TSCLibc dependency #1004

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
Feb 1, 2022
Merged

Conversation

compnerd
Copy link
Member

@compnerd compnerd commented Feb 1, 2022

These modules did not use any of the TSCLibc interfaces but relied on
the module's re-exported libc import. Simply inline that and remove the
dependency on TSCLibc. On Linux and Apple platforms, this does not
have much impact, however, Windows does not support static linking of
Swift content yet. As a result, this avoids an unnecessary dynamic
library being linked and increasing the dirty memory of the process.

@compnerd
Copy link
Member Author

compnerd commented Feb 1, 2022

@swift-ci please test

These modules did not use any of the `TSCLibc` interfaces but relied on
the module's re-exported libc import.  Simply inline that and remove the
dependency on `TSCLibc`.  On Linux and Apple platforms, this does not
have much impact, however, Windows does not support static linking of
Swift content yet.  As a result, this avoids an unnecessary dynamic
library being linked and increasing the dirty memory of the process.
@compnerd
Copy link
Member Author

compnerd commented Feb 1, 2022

@swift-ci please test

@compnerd compnerd merged commit 17873dc into swiftlang:main Feb 1, 2022
@compnerd compnerd deleted the libc branch February 1, 2022 18:14
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