-
Notifications
You must be signed in to change notification settings - Fork 10.5k
Add pty to Glibc modulemap #3926
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
Conversation
@@ -21,6 +21,7 @@ | |||
module SwiftGlibc [system] { | |||
% if CMAKE_SDK in ["LINUX", "FREEBSD", "CYGWIN"]: | |||
link "pthread" | |||
link "util" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's unfortunate we can't make this a directive in the submodule, as this is going to cause everything to link with util
. However, that is consistent with the current Glibc
module design (and Darwin
), so it does seem to fit into the current model.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you know why it doesn't link at all if its in the submodule?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a limitation of the current Clang modules implementation, unfortunately. My understanding it is non-trivial to fix that.
This looks reasonable to me given the information in https://www.gnu.org/software/gnulib/manual/html_node/openpty.html, the imposition of @gribozavr can you review or delegate to someone else? |
@swift-ci please smoke test |
@gribozavr friendly ping, swiftpm has two PR dependant on this 😄 |
@aciidb0mb3r Could you also add includes for Could you also add a fixme near the |
@gribozavr Done |
@swift-ci Please smoke test |
is the Linux failure is related to this? |
Does not look related indeed. Merging! If you want to submit swiftpm fixes that depend on this change, I would recommend submitting a PR of this change for the swift-3.0-branch, this way we would be able to cherry-pick dependent swiftpm changes, if such a need arises. |
@gribozavr Thanks! |
What's in this pull request?
This adds the header pty.h to the Glibc modulemap.
Resolved bug number: (SR-)
Before merging this pull request to apple/swift repository:
Triggering Swift CI
The swift-ci is triggered by writing a comment on this PR addressed to the GitHub user @swift-ci. Different tests will run depending on the specific comment that you use. The currently available comments are:
Smoke Testing
A smoke test on macOS does the following:
device standard libraries are not built.
version of these tests are not run.
A smoke test on Linux does the following:
tests are not run.
Validation Testing
Lint Testing
Note: Only members of the Apple organization can trigger swift-ci.