Skip to content

Commit 81b1292

Browse files
committed
extconf: Do not try to find gmake on Windows
On Windows, Ruby-DevKit only has 'make', so if we find 'gmake' it comes from somewhere else and most likely does not work with MSYS.
1 parent 6ce3d50 commit 81b1292

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

ext/rugged/extconf.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,14 @@ def sys(cmd)
1515
ret
1616
end
1717

18-
if !(MAKE = find_executable('gmake') || find_executable('make'))
18+
MAKE = if Gem.win_platform?
19+
# On Windows, Ruby-DevKit only has 'make'.
20+
find_executable('make')
21+
else
22+
find_executable('gmake') || find_executable('make')
23+
end
24+
25+
if !MAKE
1926
abort "ERROR: GNU make is required to build Rugged."
2027
end
2128

0 commit comments

Comments
 (0)