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 2
2
3
3
LIBGIT2SHA=` cat ./nuget.package/libgit2/libgit2_hash.txt`
4
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
5
14
6
15
rm -rf libgit2/build
7
16
mkdir libgit2/build
@@ -15,17 +24,13 @@ cmake -DCMAKE_BUILD_TYPE:STRING=Release \
15
24
-DENABLE_TRACE=ON \
16
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
24
- OS=` uname`
25
- ARCH=` uname -m`
26
-
27
- PACKAGEPATH=" nuget.package/runtimes"
28
-
29
34
if [[ $RID == " " ]]; then
30
35
if [[ $ARCH == " x86_64" ]]; then
31
36
RID=" unix-x64"
You can’t perform that action at this time.
0 commit comments