Skip to content

Conversation

@compnerd
Copy link
Collaborator

@compnerd compnerd commented Dec 2, 2021

CSystem is a leaky library dependency from System and must be
distributed. Install the files and make the dependency public so that
it is emitted into the clients.

CSystem is a leaky library dependency from System and must be
distributed.  Install the files and make the dependency public so that
it is emitted into the clients.
@compnerd
Copy link
Collaborator Author

compnerd commented Dec 2, 2021

CC: @milseman @tomerd

Internals/Syscalls.swift
Internals/WindowsSyscallAdapters.swift)
target_link_libraries(SystemPackage PRIVATE
target_link_libraries(SystemPackage PUBLIC
Copy link
Contributor

Choose a reason for hiding this comment

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

Just for my own education, what does this do?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This means that any user of SystemPackage will now transitively link against CSystem, which in this case propagates the include directives for the module definition (as it is an interface library). Because SystemPackage publicly imports CSystem and forwards certain items as @_emitIntoClient, we need to ensure that all clients of SystemPackage can see CSystem.

@tomerd
Copy link
Member

tomerd commented Dec 2, 2021

@swift-ci test

@compnerd compnerd merged commit 836bc45 into apple:main Dec 2, 2021
@compnerd compnerd deleted the leaky-cauldron branch December 2, 2021 19:22
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.

3 participants