Skip to content

Foundation: port FileHandle to Windows #1848

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
Jan 30, 2019

Conversation

compnerd
Copy link
Member

This ports the FileHandle interfaces to Windows.

@compnerd
Copy link
Member Author

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test

@compnerd
Copy link
Member Author

@swift-ci please test

This ports the FileHandle interfaces to Windows.
@compnerd
Copy link
Member Author

@swift-ci please test

@@ -22,6 +22,10 @@ import CoreFoundation

@_exported import Dispatch

#if os(Windows)
import WinSDK
Copy link
Contributor

Choose a reason for hiding this comment

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

Where did we end up on this? Will this cause people importing Foundation to also get WinSDK?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeah, I think that currently it does currently result in WinSDK getting pulled in, since we do not yet have the private import (I think that @jrose-apple was working on the that?). If there is a way to avoid that, I'm happy to try that out. I don't think that going with Shims for this is very good though because as we start using more interfaces across Windows, we will effectively end up re-creating the SDK.

Copy link
Contributor

Choose a reason for hiding this comment

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

It's probably reasonable in the end; on Darwin it's not like you can't help but import standard Darwin headers if you import Foundation.

@compnerd
Copy link
Member Author

@parkera - so is this good to go then?

@parkera
Copy link
Contributor

parkera commented Jan 30, 2019

Looks good to me - thanks!

@compnerd compnerd merged commit 06b9fb1 into swiftlang:master Jan 30, 2019
@compnerd compnerd deleted the handle-with-care branch January 30, 2019 06:18
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