We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4cf3d04 commit 1cc1f60Copy full SHA for 1cc1f60
build.libgit2.sh
@@ -2,6 +2,15 @@
2
3
LIBGIT2SHA=`cat ./nuget.package/libgit2/libgit2_hash.txt`
4
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
14
15
rm -rf libgit2/build
16
mkdir libgit2/build
@@ -15,17 +24,13 @@ cmake -DCMAKE_BUILD_TYPE:STRING=Release \
24
-DENABLE_TRACE=ON \
25
-DLIBGIT2_FILENAME=git2-$SHORTSHA \
17
26
-DCMAKE_OSX_ARCHITECTURES="i386;x86_64" \
27
+ -DUSE_HTTPS=$USEHTTPS \
18
28
-DUSE_BUNDLED_ZLIB=ON \
19
29
..
20
30
cmake --build .
21
31
22
32
popd
23
33
-OS=`uname`
-ARCH=`uname -m`
-
-PACKAGEPATH="nuget.package/runtimes"
34
if [[ $RID == "" ]]; then
35
if [[ $ARCH == "x86_64" ]]; then
36
RID="unix-x64"
0 commit comments