Skip to content

TSCLibc: add an implementation of mkdtemp for Windows #110

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
Aug 18, 2020

Conversation

compnerd
Copy link
Member

This adds an implementation of mkdtemp for Windows to accommodate
swift-package-manager which uses this rather than Foundation.

This adds an implementation of `mkdtemp` for Windows to accommodate
swift-package-manager which uses this rather than Foundation.
@compnerd
Copy link
Member Author

CC: @tomerd @neonichu @abertelrud

@compnerd
Copy link
Member Author

@swift-ci please test

public func mkdtemp(
_ template: UnsafeMutablePointer<CChar>?
) -> UnsafeMutablePointer<CChar>? {
fatalError("mkdtemp is unimplemented")
Copy link
Contributor

Choose a reason for hiding this comment

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

was this just not used before?

Copy link
Member Author

@compnerd compnerd Aug 11, 2020

Choose a reason for hiding this comment

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

It "was" in the sense that s-p-m never got to the point of building stuff previously. I've had this change laying around for ages (well had a version of it that worked well enough). Just draining changes that will allow s-p-m to get further :) I think that this might be better to implement using Foundation.

Copy link
Contributor

Choose a reason for hiding this comment

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

ah gotcha

@tomerd
Copy link
Contributor

tomerd commented Aug 17, 2020

@compnerd please merge when ready

@compnerd compnerd merged commit d67192d into swiftlang:master Aug 18, 2020
@compnerd compnerd deleted the mkdtemp branch August 18, 2020 00:39
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