Skip to content
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

Minimal Windows support for Process #9047

Merged
merged 18 commits into from
Apr 14, 2020
Merged

Minimal Windows support for Process #9047

merged 18 commits into from
Apr 14, 2020

Conversation

oprypin
Copy link
Member

@oprypin oprypin commented Apr 11, 2020

Based on RX14@ed14ad5

oprypin and others added 10 commits April 8, 2020 18:06
Int64 is enough to fit the actual underlying values of different platforms (Int32 on Linux, UInt32 on Windows).

This will allow to make Process cross-platform without returning a different type to users on different platforms.
…ions

Note that most of this change is just extracting parts of process.cr, mostly unchanged.
To see that for yourself, make sure to view the patch as `git diff -w HEAD~:src/process.cr src/crystal/system/unix/process.cr`

Co-Authored-By: Stephanie Hobbs <[email protected]>
This will be used to call LibC.CreateProcessW from Process.new.

Co-Authored-By: Stephanie Hobbs <[email protected]>
spec/std/process_spec.cr Outdated Show resolved Hide resolved
spec/std/process_spec.cr Outdated Show resolved Hide resolved
@straight-shoota straight-shoota added this to the 0.35.0 milestone Apr 13, 2020
@straight-shoota straight-shoota added the platform:windows Windows support based on the MSVC toolchain / Win32 API label Apr 13, 2020
@oprypin
Copy link
Member Author

oprypin commented Apr 13, 2020

Sigh, CI infra failure

@RX14 RX14 merged commit 9f9b0a8 into crystal-lang:master Apr 14, 2020
carlhoerberg pushed a commit to carlhoerberg/crystal that referenced this pull request Apr 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:feature platform:windows Windows support based on the MSVC toolchain / Win32 API topic:stdlib:system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants