Skip to content

Commit f3f0435

Browse files
committed
Disable HTTPS when building on linux
1 parent df57a8f commit f3f0435

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
@@ -4,6 +4,15 @@ set -e
44

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

817
rm -rf libgit2/build
918
mkdir libgit2/build
@@ -21,18 +30,14 @@ cmake -DCMAKE_BUILD_TYPE:STRING=Release \
2130
-DENABLE_TRACE=ON \
2231
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
2332
-DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
33+
-DUSE_HTTPS=$USEHTTPS \
2434
-DUSE_BUNDLED_ZLIB=ON \
2535
-DCMAKE_TOOLCHAIN_FILE=${TOOLCHAIN_FILE} \
2636
..
2737
cmake --build .
2838

2939
popd
3040

31-
OS=`uname`
32-
ARCH=`uname -m`
33-
34-
PACKAGEPATH="nuget.package/runtimes"
35-
3641
if [[ $RID == "" ]]; then
3742
if [[ $ARCH == "x86_64" ]]; then
3843
RID="unix-x64"

0 commit comments

Comments
 (0)