Skip to content

Commit 051ba31

Browse files
authored
Merge pull request #792 from cfillion/fix-windows-build
Fix Windows builds
2 parents 30e06a9 + 2f5a8f6 commit 051ba31

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

ext/rugged/extconf.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,8 @@ class CMakeTimeout < StandardError
3131

3232
def self.run_cmake(timeout, args)
3333
# Set to process group so we can kill it and its children
34-
pid = Process.spawn("cmake #{args}", pgroup: true)
34+
pgroup = Gem.win_platform? ? :new_pgroup : :pgroup
35+
pid = Process.spawn("cmake #{args}", pgroup => true)
3536

3637
Timeout.timeout(timeout) do
3738
Process.waitpid(pid)

rugged.gemspec

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,4 +31,5 @@ desc
3131
s.add_development_dependency "rake-compiler", ">= 0.9.0"
3232
s.add_development_dependency "pry"
3333
s.add_development_dependency "minitest", "~> 5.0"
34+
s.metadata["msys2_mingw_dependencies"] = "libssh2"
3435
end

0 commit comments

Comments
 (0)