Skip to content

Commit 38737e9

Browse files
committed
Use Schannel for Windows HTTP
1 parent aa94d25 commit 38737e9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

build.libgit2.ps1

+3-3
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ try {
118118

119119
if ($x86.IsPresent) {
120120
Write-Output "Building x86..."
121-
Run-Command -Fatal { & $cmake -A Win32 -D USE_SSH=OFF -D "BUILD_TESTS=$build_tests" -D "BUILD_CLI=OFF" -D "LIBGIT2_FILENAME=$binaryFilename" .. }
121+
Run-Command -Fatal { & $cmake -A Win32 -D USE_SSH=OFF -D USE_HTTPS=Schannel -D "BUILD_TESTS=$build_tests" -D "BUILD_CLI=OFF" -D "LIBGIT2_FILENAME=$binaryFilename" .. }
122122
Run-Command -Fatal { & $cmake --build . --config $configuration }
123123
if ($test.IsPresent) { Run-Command -Quiet -Fatal { & $ctest -V . } }
124124
cd $configuration
@@ -134,7 +134,7 @@ try {
134134
Write-Output "Building x64..."
135135
Run-Command -Quiet { & mkdir build64 }
136136
cd build64
137-
Run-Command -Fatal { & $cmake -A x64 -D USE_SSH=OFF -D "BUILD_TESTS=$build_tests" -D "BUILD_CLI=OFF" -D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
137+
Run-Command -Fatal { & $cmake -A x64 -D USE_SSH=OFF -D USE_HTTPS=Schannel -D "BUILD_TESTS=$build_tests" -D "BUILD_CLI=OFF" -D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
138138
Run-Command -Fatal { & $cmake --build . --config $configuration }
139139
if ($test.IsPresent) { Run-Command -Quiet -Fatal { & $ctest -V . } }
140140
cd $configuration
@@ -149,7 +149,7 @@ try {
149149
Write-Output "Building arm64..."
150150
Run-Command -Quiet { & mkdir buildarm64 }
151151
cd buildarm64
152-
Run-Command -Fatal { & $cmake -A ARM64 -D USE_SSH=OFF -D "BUILD_TESTS=$build_tests" -D "BUILD_CLI=OFF" -D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
152+
Run-Command -Fatal { & $cmake -A ARM64 -D USE_SSH=OFF -D USE_HTTPS=Schannel -D "BUILD_TESTS=$build_tests" -D "BUILD_CLI=OFF" -D "LIBGIT2_FILENAME=$binaryFilename" ../.. }
153153
Run-Command -Fatal { & $cmake --build . --config $configuration }
154154
if ($test.IsPresent) { Run-Command -Quiet -Fatal { & $ctest -V . } }
155155
cd $configuration

0 commit comments

Comments
 (0)