-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Make POSIXError
use POSIXErrorCode
from Swift Stdlib
#933
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
Nit: Can you rebase to squash the merge commits? |
@CodaFi Done. |
@swift-ci test |
Looks good, but the tests didn't run. Let me try: @swift-ci please test |
@swift-ci please test |
|
|
|
Foundation/NSError.swift
Outdated
@@ -10,6 +10,11 @@ | |||
// | |||
//===----------------------------------------------------------------------===// | |||
|
|||
#if os(OSX) || os(iOS) |
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.
Nit: macOS
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.
Rebased and changed
Darwin or Glibc Make `POSIXError` use POSIXErrorCode from platform library
@swift-ci please test |
@colemancda Can you rebase this and try again? |
This pull request has gone stale, and the build fails. If the build can be fixed and rebased onto master, then it can be re-submitted. |
Fixed in swiftlang/swift@8157194 |
Rework in #2113 |
Right now POSIXError is broken on Linux, with Foundation defining
POSIXError.Code
that is valid for Darwin, not Linux. The Swift Standard Library already has a properly defined and unit testedPOSIXErrorCode
that is platform specific for Darwin and Linux. Foundation should use thisenum
and not define an invalid duplicate.