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
Process: port to Windows #1907
Process: port to Windows #1907
Conversation
@swift-ci please test |
// Ensure that the launch path is set | ||
guard let launchPath = self.executableURL?.path else { | ||
throw NSError(domain: NSCocoaErrorDomain, code: NSFileNoSuchFileError) | ||
} | ||
|
||
#if os(Windows) | ||
// TODO(compnerd) quote the commandline correctly |
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.
apple/swift-llvm has an implementation of this, @jmittert should know where.
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.
@jakepetroules - apple/swift-llvm? Why is that not upstream? I know that llvm has code for unpacking the parameters, I didn't know that it did quoting too.
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.
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.
@millenomi - does Foundation pull in LLVM to link against?
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.
No, we don’t link LLVM other than the language runtimes. You’ll have to port that code over to use it.
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.
I think its reasonable to do that as a follow up, what do you think?
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.
Please do so, but yup.
@swift-ci please test |
This implements the `NSTask` API for Windows.
@swift-ci please test |
@compnerd It isn't obvious that this caused it, but the Ubuntu 18.04 bot started failing in a https://ci.swift.org/job/oss-swift-package-linux-ubuntu-18_04/1099/console
|
I think that test has been intermittent before, maybe Jenkins is somehow setting some extra environment variables although it will be hard to track down as there are no Ubuntu18.04 CI test servers to debug against. |
Can the test be disabled or changed to be more robust if it's intermittent? |
It has been disabled in |
Thanks! |
This implements the
NSTask
API for Windows.