File tree Expand file tree Collapse file tree 1 file changed +10
-5
lines changed
Expand file tree Collapse file tree 1 file changed +10
-5
lines changed Original file line number Diff line number Diff line change 44
55LIBGIT2SHA=` cat ./nuget.package/libgit2/libgit2_hash.txt`
66SHORTSHA=${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
817rm -rf libgit2/build
918mkdir 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 ..
2737cmake --build .
2838
2939popd
3040
31- OS=` uname`
32- ARCH=` uname -m`
33-
34- PACKAGEPATH=" nuget.package/runtimes"
35-
3641if [[ $RID == " " ]]; then
3742 if [[ $ARCH == " x86_64" ]]; then
3843 RID=" unix-x64"
You can’t perform that action at this time.
0 commit comments