Skip to content

Commit 1cc1f60

Browse files
committed
Disable HTTPS when building on linux
1 parent 4cf3d04 commit 1cc1f60

File tree

1 file changed

+10
-5
lines changed

1 file changed

+10
-5
lines changed

build.libgit2.sh

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@
22

33
LIBGIT2SHA=`cat ./nuget.package/libgit2/libgit2_hash.txt`
44
SHORTSHA=${LIBGIT2SHA:0:7}
5+
OS=`uname`
6+
ARCH=`uname -m`
7+
PACKAGEPATH="nuget.package/runtimes"
8+
9+
if [[ $OS == "Darwin" ]]; then
10+
USEHTTPS="ON"
11+
else
12+
USEHTTPS="OFF"
13+
fi
514

615
rm -rf libgit2/build
716
mkdir libgit2/build
@@ -15,17 +24,13 @@ cmake -DCMAKE_BUILD_TYPE:STRING=Release \
1524
-DENABLE_TRACE=ON \
1625
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
1726
-DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
27+
-DUSE_HTTPS=$USEHTTPS \
1828
-DUSE_BUNDLED_ZLIB=ON \
1929
..
2030
cmake --build .
2131

2232
popd
2333

24-
OS=`uname`
25-
ARCH=`uname -m`
26-
27-
PACKAGEPATH="nuget.package/runtimes"
28-
2934
if [[ $RID == "" ]]; then
3035
if [[ $ARCH == "x86_64" ]]; then
3136
RID="unix-x64"

0 commit comments

Comments
 (0)