File tree Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Expand file tree Collapse file tree 1 file changed +4
-1
lines changed Original file line number Diff line number Diff line change 12
12
$CFLAGS << " -O3" unless $CFLAGS[ /-O\d / ]
13
13
$CFLAGS << " -Wall -Wno-comment"
14
14
15
+ cmake_flags = [ ENV [ "CMAKE_FLAGS" ] ]
16
+ cmake_flags << "-DUSE_SHA1DC=ON" if with_config ( "sha1dc" )
17
+
15
18
def sys ( cmd )
16
19
puts " -- #{ cmd } "
17
20
unless ret = xsystem ( cmd )
@@ -77,7 +80,7 @@ def sys(cmd)
77
80
Dir . chdir ( "build" ) do
78
81
# On Windows, Ruby-DevKit is MSYS-based, so ensure to use MSYS Makefiles.
79
82
generator = "-G \" MSYS Makefiles\" " if Gem . win_platform?
80
- sys ( "cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo #{ ENV [ 'CMAKE_FLAGS' ] } #{ generator } " )
83
+ sys ( "cmake .. -DBUILD_CLAR=OFF -DTHREADSAFE=ON -DBUILD_SHARED_LIBS=OFF -DCMAKE_C_FLAGS=-fPIC -DCMAKE_BUILD_TYPE=RelWithDebInfo #{ cmake_flags . join ( ' ' ) } #{ generator } " )
81
84
sys ( MAKE )
82
85
83
86
# "normal" libraries (and libgit2 builds) get all these when they build but we're doing it
You can’t perform that action at this time.
0 commit comments