File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ def sys(cmd)
15
15
ret
16
16
end
17
17
18
- def on_windows
18
+ def windows?
19
19
RbConfig ::CONFIG [ 'host_os' ] =~ /mswin|mingw/
20
20
end
21
21
@@ -59,7 +59,7 @@ def on_windows
59
59
abort "ERROR: CMake is required to build Rugged."
60
60
end
61
61
62
- if !on_windows && !find_executable ( 'pkg-config' )
62
+ if !windows? && !find_executable ( 'pkg-config' )
63
63
abort "ERROR: pkg-config is required to build Rugged."
64
64
end
65
65
@@ -73,7 +73,7 @@ def on_windows
73
73
# "normal" libraries (and libgit2 builds) get all these when they build but we're doing it
74
74
# statically so we put the libraries in by hand. It's important that we put the libraries themselves
75
75
# in $LIBS or the final linking stage won't pick them up
76
- if on_windows
76
+ if windows?
77
77
$LDFLAGS << " " + "-L#{ Dir . pwd } /deps/winhttp"
78
78
$LIBS << " -lwinhttp -lcrypt32 -lrpcrt4 -lole32"
79
79
else
You can’t perform that action at this time.
0 commit comments